[rfc][icedtea-web] AccessClassInPackage Reproducer Failure

Jie Kang jkang at redhat.com
Wed Nov 12 21:25:45 UTC 2014


I have been running a lot of reproducers lately and some consistent failures caught my eye today. In the AccessClassInPackage reproducers, a number of asserts are made including the following two:

Assert.assertFalse("AccessClassInPackageTestLunch1 should not be terminated, but was", pr.wasTerminated);
Assert.assertEquals((Integer) 0, pr.returnValue);

The tests all fail due to these two asserts (wasTerminated is always true, not false, and return value is always 130 (exit due to control-C? [1]), not 0). When removing these lines and checking the tests, they all work and pass. The Class.forName call succeeds and is printed to stdout.

So I am wondering, what are these two lines for? Is there some regression causing these failures?

P.S. patch attached is for easy reference to code I am talking about above; not an actual patch (though we may want to apply a similar patch)

[1] http://tldp.org/LDP/abs/html/exitcodes.html



Jie Kang
-------------- next part --------------
A non-text attachment was scrubbed...
Name: itw-accessclass-reproducer-1.patch
Type: text/x-patch
Size: 1678 bytes
Desc: not available
URL: <http://mail.openjdk.java.net/pipermail/distro-pkg-dev/attachments/20141112/de1c145d/itw-accessclass-reproducer-1.patch>

More information about the distro-pkg-dev mailing list