United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
Bug ID: JDK-6837906 compiler tests of 6636138 fail with IllegalAccessException
JDK-6837906 : compiler tests of 6636138 fail with IllegalAccessException

Details
Type:
Bug
Submit Date:
2009-05-06
Status:
Closed
Updated Date:
2012-02-01
Project Name:
JDK
Resolved Date:
2011-03-08
Component:
hotspot
OS:
generic
Sub-Component:
compiler
CPU:
generic
Priority:
P5
Resolution:
Fixed
Affected Versions:
hs16
Fixed Versions:
hs16 (b04)

Related Reports
Backport:
Backport:
Relates:

Sub Tasks

Description
The compiler tests of 6636138 fail with an IllegalAccessException:

java.lang.IllegalAccessException: Class com.sun.javatest.regtest.MainWrapper$MainThread can not access a member of class Test1 with modifiers "public static"
	at sun.reflect.Reflection.ensureMemberAccess(Reflection.java:95)
	at java.lang.reflect.Method.invoke(Method.java:614)
	at com.sun.javatest.regtest.MainWrapper$MainThread.run(MainWrapper.java:94)
	at java.lang.Thread.run(Thread.java:713)

JavaTest Message: Verify that the class defining the test is
JavaTest Message: declared public (test invoked via reflection)

                                    

Comments
SUGGESTED FIX

Add public keyword for classes Test1 and Test2.
                                     
2009-05-06
EVALUATION

The classes Test1 and Test2 are not defined public.
                                     
2009-05-06
EVALUATION

http://hg.openjdk.java.net/jdk7/hotspot-comp/hotspot/rev/f53b154d959d
                                     
2009-05-07



Hardware and Software, Engineered to Work Together