[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug classpath/33731] New: JikesRVM fails to build using a Classpath VM
From: |
gnu_andrew at member dot fsf dot org |
Subject: |
[Bug classpath/33731] New: JikesRVM fails to build using a Classpath VM |
Date: |
10 Oct 2007 22:13:19 -0000 |
Also tracked in: http://jira.codehaus.org/browse/RVM-294
Building JikesRVM with either JamVM or CACAO and GNU Classpath currently fails
due to a difference in the VMRuntime classes. JikesRVM's version is public,
while the Classpath copy is package-private.
gen-interface:
[java] java.lang.ExceptionInInitializerError
[java] at
org.jikesrvm.ia32.VM_OutOfLineMachineCode.generateThreadSwitchInstructions(VM_OutOfLineMachineCode.java:342)
[java] at
org.jikesrvm.ia32.VM_OutOfLineMachineCode.init(VM_OutOfLineMachineCode.java:55)
[java] at org.jikesrvm.VM.init(VM.java:2216)
[java] at org.jikesrvm.VM.initForTool(VM.java:107)
[java] at org.jikesrvm.VM.initForTool(VM.java:95)
[java] at
org.jikesrvm.tools.header_gen.GenerateInterfaceDeclarations.main(GenerateInterfaceDeclarations.java:162)
[java] Caused by: java.lang.IllegalAccessException: class is not accessible
[java] at org.jikesrvm.runtime.VM_Entrypoints.<clinit>(VM_Entrypoints.java:78)
[java] at
org.jikesrvm.ia32.VM_OutOfLineMachineCode.generateThreadSwitchInstructions(VM_OutOfLineMachineCode.java:342)
[java] ...5 more
The line in question is:
public static final VM_Field gcLockField = getField(java.lang.VMRuntime.class,
"gcLock", int.class);
I don't know if this is new or not, but we could build earlier. Trying to put
this line in a separate file to test causes the compile to fail because
VMRuntime is private:
javac -cp
target/prototype_x86_64-linux/jksvm.jar:target/prototype_x86_64-linux/rvmrt.jar
Test.java
Test.java:7: java.lang.VMRuntime is not public in java.lang; cannot be
accessed from outside package
System.out.println(getField(java.lang.VMRuntime.class, "gcLock", int.class));
^
1 error
Using the jars as the bootclasspath works but the test still fails.
java org/jikesrvm/runtime/Test
java.lang.IllegalAccessException: class is not accessible
at org.jikesrvm.runtime.Test.main(Test.java:9)
--
Summary: JikesRVM fails to build using a Classpath VM
Product: classpath
Version: unspecified
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: classpath
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: gnu_andrew at member dot fsf dot org
GCC build triplet: x86-pc-linux-gnu
GCC host triplet: x86-pc-linux-gnu
GCC target triplet: x86-pc-linux-gnu
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33731
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Bug classpath/33731] New: JikesRVM fails to build using a Classpath VM,
gnu_andrew at member dot fsf dot org <=