Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: None
-
Fix Version/s: None
-
Component/s: Documentation, Infrastructure: Build
-
Labels:None
Description
Looks like upgrading to classpath 0.97 might pre-reqs Java6. Building with the same recent IBM 5.0 SDK I use to build 0.96, I see some new errors:
[exec] ../javax/management/openmbean/OpenMBeanParameterInfoSupport.java:209: inconvertible types
[exec] found : javax.management.openmbean.OpenType<T>
[exec] required: javax.management.openmbean.TabularType
[exec] type instanceof TabularType))
[exec] ^
[exec] ../javax/management/openmbean/OpenMBeanParameterInfoSupport.java:273: inconvertible types
[exec] found : javax.management.openmbean.OpenType<T>
[exec] required: javax.management.openmbean.TabularType
[exec] type instanceof TabularType))
[exec] ^
[exec] ../javax/management/openmbean/OpenMBeanParameterInfoSupport.java:277: inconvertible types
[exec] found : javax.management.openmbean.OpenType<T>
[exec] required: javax.management.openmbean.TabularType
[exec] type instanceof TabularType))
[exec] ^
[exec] ../javax/management/openmbean/OpenMBeanAttributeInfoSupport.java:224: inconvertible types
[exec] found : javax.management.openmbean.OpenType<T>
[exec] required: javax.management.openmbean.TabularType
[exec] type instanceof TabularType))
[exec] ^
[exec] ../javax/management/openmbean/OpenMBeanAttributeInfoSupport.java:294: inconvertible types
[exec] found : javax.management.openmbean.OpenType<T>
[exec] required: javax.management.openmbean.TabularType
[exec] type instanceof TabularType))
[exec] ^
[exec] ../javax/management/openmbean/OpenMBeanAttributeInfoSupport.java:298: inconvertible types
[exec] found : javax.management.openmbean.OpenType<T>
[exec] required: javax.management.openmbean.TabularType
[exec] type instanceof TabularType))
[exec] ^
[exec] ../javax/management/openmbean/ArrayType.java:317: inconvertible types
[exec] found : javax.management.openmbean.OpenType<capture of ?>
[exec] required: javax.management.openmbean.CompositeType
[exec] elementType instanceof CompositeType ||
[exec] ^
[exec] ../javax/management/openmbean/ArrayType.java:318: inconvertible types
[exec] found : javax.management.openmbean.OpenType<capture of ?>
[exec] required: javax.management.openmbean.TabularType
[exec] elementType instanceof TabularType ||
[exec] ^
[exec] ../external/sax/org/xml/sax/helpers/NewInstance.java:63: warning: non-varargs call of varargs method with inexact argument type for last parameter;
[exec] cast to java.lang.Class<?> for a varargs call
[exec] cast to java.lang.Class<?>[] for a non-varargs call and to suppress this warning
[exec] m = Thread.class.getMethod("getContextClassLoader", null);
[exec] ^
[exec] ../external/sax/org/xml/sax/helpers/NewInstance.java:70: warning: non-varargs call of varargs method with inexact argument type for last parameter;
[exec] cast to java.lang.Object for a varargs call
[exec] cast to java.lang.Object[] for a non-varargs call and to suppress this warning
[exec] return (ClassLoader) m.invoke(Thread.currentThread(), null);
[exec] ^
[exec] Note: * uses or overrides a deprecated API.
[exec] Note: Recompile with -Xlint:deprecation for details.
[exec] Note: Some input files use unchecked or unsafe operations.
[exec] Note: Recompile with -Xlint:unchecked for details.
[exec] 8 errors
If we are going to change the required host JVM level, then all documentation needs to be updated.
It looks like Sun have worked on this bug in javac throughout the 1.5 VMs as it gets slowly better with later releases. Andrew Hughes has filed a bug with Sun, but I'm not sure if its present on the latest releases. The last release tested was 13 by Dalibor Topic. JDK 1.5s can work if you replace the javac command with ecj.