FULL PRODUCT VERSION :
java version "1.7.0"
Java (TM) SE Runtime Environment (build 1.7.0-b147)
Java Hotspot (TM) 64-bit Server VM (build 21.0-b17, mixed mode)
ADDITIONAL OS VERSION INFORMATION :
Microsoft Windows 7 64-bit
A DESCRIPTION OF THE PROBLEM :
When I try to run javah, it fails giving a class cast exception "com.sun.tools.javac.api.ClientCodeWrapper$WrappedJavaFileManager cannot be cast to com.sun.tools.javac.file.JavacFileManager"
STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
run javah on any .java file containing a native method
REPRODUCIBILITY :
This bug can be reproduced always.
---------- BEGIN SOURCE ----------
package src;
class NativeAdd{
static {
System.loadLibrary("nativeAdd");
}
public native double add(double d1, double d2);
}
---------- END SOURCE ----------
java version "1.7.0"
Java (TM) SE Runtime Environment (build 1.7.0-b147)
Java Hotspot (TM) 64-bit Server VM (build 21.0-b17, mixed mode)
ADDITIONAL OS VERSION INFORMATION :
Microsoft Windows 7 64-bit
A DESCRIPTION OF THE PROBLEM :
When I try to run javah, it fails giving a class cast exception "com.sun.tools.javac.api.ClientCodeWrapper$WrappedJavaFileManager cannot be cast to com.sun.tools.javac.file.JavacFileManager"
STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
run javah on any .java file containing a native method
REPRODUCIBILITY :
This bug can be reproduced always.
---------- BEGIN SOURCE ----------
package src;
class NativeAdd{
static {
System.loadLibrary("nativeAdd");
}
public native double add(double d1, double d2);
}
---------- END SOURCE ----------
- duplicates
-
JDK-7110540 cannot be cast to com.sun.tools.javac.file.JavacFileManager
-
- Closed
-