RFR - 8065552: setAccessible(true) on fields of Class may throw a SecurityException

Martin Buchholz martinrb at google.com
Mon Dec 1 18:32:41 UTC 2014


There's a whole set of invariant tests that should be applied to the entire jdk.
"Find all the classes that can be loaded, load them, and check all the
invariants you can think of!"

http://cr.openjdk.java.net/~martin/webrevs/openjdk9/Class.getMethods-benchmark/test/java/lang/Class/getMethods/LoadAllClassesAndMethods.java.html

But do we have any professional test-writers?

On Mon, Dec 1, 2014 at 9:48 AM, Seán Coffey <sean.coffey at oracle.com> wrote:
> on the test side would it be worth testing all public classes available (e.g
> in rt.jar ?) to ensure that
> Field.setAccessible works as expected and that we don't hit this issue again
> ? It might be some
> what of a heavy test for jtreg inclusion though.



More information about the core-libs-dev mailing list