-
Bug
-
Resolution: Won't Fix
-
P3
-
None
-
9
-
x86_64
-
generic
A DESCRIPTION OF THE PROBLEM :
"class file for com.sun.beans.introspect.PropertyInfo not found" is displayed when compiling with '-source 1.8' and '-target 1.8' options, even if there is no direct reference of "PropertyInfo" class.
REGRESSION : Last worked in version 8u192
STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
$ /Library/Java/JavaVirtualMachines/jdk-11.0.1.jdk/Contents/Home/bin/javac -source 1.8 -target 1.8 CompileFailure.java
EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
$ /Library/Java/JavaVirtualMachines/jdk-11.0.1.jdk/Contents/Home/bin/javac -source 1.8 -target 1.8 CompileFailure.java
warning: [options] bootstrap class path not set in conjunction with -source 8
1 warning
ACTUAL -
$ /Library/Java/JavaVirtualMachines/jdk-11.0.1.jdk/Contents/Home/bin/javac -source 1.8 -target 1.8 CompileFailure.java
warning: [options] bootstrap class path not set in conjunction with -source 8
CompileFailure.java:6: error: cannot access PropertyInfo
new PropertyDescriptor(object.getClass().getName(), object.getClass());
^
class file for com.sun.beans.introspect.PropertyInfo not found
1 error
1 warning
---------- BEGIN SOURCE ----------
import java.beans.PropertyDescriptor;
public class CompileFailure {
void test(Object object) throws Exception {
// fail to compile
new PropertyDescriptor(object.getClass().getName(), object.getClass());
// workaround
// new PropertyDescriptor((String)object.getClass().getName(), object.getClass());
}
}
---------- END SOURCE ----------
CUSTOMER SUBMITTED WORKAROUND :
type casting seems to help
FREQUENCY : always
"class file for com.sun.beans.introspect.PropertyInfo not found" is displayed when compiling with '-source 1.8' and '-target 1.8' options, even if there is no direct reference of "PropertyInfo" class.
REGRESSION : Last worked in version 8u192
STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
$ /Library/Java/JavaVirtualMachines/jdk-11.0.1.jdk/Contents/Home/bin/javac -source 1.8 -target 1.8 CompileFailure.java
EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
$ /Library/Java/JavaVirtualMachines/jdk-11.0.1.jdk/Contents/Home/bin/javac -source 1.8 -target 1.8 CompileFailure.java
warning: [options] bootstrap class path not set in conjunction with -source 8
1 warning
ACTUAL -
$ /Library/Java/JavaVirtualMachines/jdk-11.0.1.jdk/Contents/Home/bin/javac -source 1.8 -target 1.8 CompileFailure.java
warning: [options] bootstrap class path not set in conjunction with -source 8
CompileFailure.java:6: error: cannot access PropertyInfo
new PropertyDescriptor(object.getClass().getName(), object.getClass());
^
class file for com.sun.beans.introspect.PropertyInfo not found
1 error
1 warning
---------- BEGIN SOURCE ----------
import java.beans.PropertyDescriptor;
public class CompileFailure {
void test(Object object) throws Exception {
// fail to compile
new PropertyDescriptor(object.getClass().getName(), object.getClass());
// workaround
// new PropertyDescriptor((String)object.getClass().getName(), object.getClass());
}
}
---------- END SOURCE ----------
CUSTOMER SUBMITTED WORKAROUND :
type casting seems to help
FREQUENCY : always