[rfc][icedtea-web] Reproducer for ClassCircularityError on classloading

Adam Domurad adomurad at redhat.com
Mon Aug 27 08:19:28 PDT 2012


I don't know if this was given a PR#, but with HEAD/1.3 this should fail
because the tests causes a ClassCircularityError. The patch posted by
Deepak causes the test to succeed.

The test can later be expanded to test other aspects of setting custom
policy if need be.

ChangeLog:
2012-08-27  Adam Domurad  <adomurad at redhat.com>

	Tests custom policy definition in such a way that has been known to 
	cause ClassCircularityError's.
	* tests/reproducers/signed/CustomPolicy/resources/CustomPolicy.jnlp:
	* tests/reproducers/signed/CustomPolicy/srcs/CustomPolicy.java:
	Sets custom policy and performs a privileged operation with no given 
	privileges.
	*
tests/reproducers/signed/CustomPolicy/testcases/CustomPolicyTests.java:
	Tests that an access control exception was caught, and that the program
	exits correctly.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: cce.patch
Type: text/x-patch
Size: 9320 bytes
Desc: not available
Url : http://mail.openjdk.java.net/pipermail/distro-pkg-dev/attachments/20120827/5ea5508e/cce.patch 


More information about the distro-pkg-dev mailing list