-
Bug
-
Resolution: Fixed
-
P3
-
7
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-2219379 | 7u4 | James Holmlund | P3 | Closed | Fixed | b10 |
FULL PRODUCT VERSION :
A DESCRIPTION OF THE PROBLEM :
An exception has occurred in the compiler (1.7.0_02). Please file a bug at the Java Developer Connection (http://java.sun.com/webapps/bugreport) after checking the Bug Parade for duplicates. Include your program and the following diagnostic in your report. Thank you.
java.lang.ClassCastException: com.sun.tools.javac.api.ClientCodeWrapper$WrappedJavaFileManager cannot be cast to com.sun.tools.javac.file.JavacFileManager
at com.sun.tools.javac.main.Main.compile(Main.java:413)
at com.sun.tools.javac.api.JavacTaskImpl.call(JavacTaskImpl.java:132)
at com.sun.tools.javah.JavahTask.run(JavahTask.java:513)
at com.sun.tools.javah.JavahTask.run(JavahTask.java:335)
at com.sun.tools.javah.Main.main(Main.java:46)
STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
Just starting off with JNI. Occurs when javah is run as an external tool in eclipse.
REPRODUCIBILITY :
This bug can be reproduced always.
---------- BEGIN SOURCE ----------
package com.redwoodsys.jvolcano.proto;
public class EngineFpgaJni {
public native void set8(int offset, int value);
public native int get8(int offset);
public native void set16(int offset, int value);
public native int get16(int offset);
public native void set32(int offset, int value);
public native int get32(int offset);
}
---------- END SOURCE ----------
A DESCRIPTION OF THE PROBLEM :
An exception has occurred in the compiler (1.7.0_02). Please file a bug at the Java Developer Connection (http://java.sun.com/webapps/bugreport) after checking the Bug Parade for duplicates. Include your program and the following diagnostic in your report. Thank you.
java.lang.ClassCastException: com.sun.tools.javac.api.ClientCodeWrapper$WrappedJavaFileManager cannot be cast to com.sun.tools.javac.file.JavacFileManager
at com.sun.tools.javac.main.Main.compile(Main.java:413)
at com.sun.tools.javac.api.JavacTaskImpl.call(JavacTaskImpl.java:132)
at com.sun.tools.javah.JavahTask.run(JavahTask.java:513)
at com.sun.tools.javah.JavahTask.run(JavahTask.java:335)
at com.sun.tools.javah.Main.main(Main.java:46)
STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
Just starting off with JNI. Occurs when javah is run as an external tool in eclipse.
REPRODUCIBILITY :
This bug can be reproduced always.
---------- BEGIN SOURCE ----------
package com.redwoodsys.jvolcano.proto;
public class EngineFpgaJni {
public native void set8(int offset, int value);
public native int get8(int offset);
public native void set16(int offset, int value);
public native int get16(int offset);
public native void set32(int offset, int value);
public native int get32(int offset);
}
---------- END SOURCE ----------
- backported by
-
JDK-2219379 com.sun.tools.javac.api.ClientCodeWrapper$WrappedJavaFileManager cannot be cast
-
- Closed
-
- duplicates
-
JDK-7191592 Will making ndk Apps of Android
-
- Closed
-
- relates to
-
JDK-7142667 Problems with the value passed to the 'classes' param of JavaCompiler.CompilationTask.getTask(...)
-
- Closed
-
-
JDK-7142672 Problems with the value passed to the 'classes' param of JavaCompiler.CompilationTask.getTask(...)
-
- Closed
-