review request (URGENT): 7050328: (jsr-292) findConstructor throws ExceptionInInitializerError if run under SecurityManager

John Rose john.r.rose at
Wed Jun 1 13:39:58 PDT 2011

Summary: Wrap system property and reflection accesses under doPrivileged.  Ensure constant pool linkage bypasses the SM as specified.  (jdk changes only; no jvm changes)

- Passes jtreg unit tests for java.lang.invoke and ad hoc mlvm tests.
- Newly modified unit test spot-tests APIs with a toxic security manager, to ensure that the specified security exceptions are thrown.
- Passes test reported in 7050328.
- No regression on related bug 7042829.

Note to reviewers:  Please confirm that the duplicated or moved code lines are accurate duplicates.

The change to the unit test shows how I verified the places that needed change.  These places were independently found by grepping.

-- John

More information about the hotspot-compiler-dev mailing list