JDK-8005473 : Warnings compiling jaxp
  • Type: Bug
  • Component: xml
  • Sub-Component: jaxp
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2012-12-26
  • Updated: 2013-05-04
  • Resolved: 2012-12-28
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 8
8 b71Fixed
Related Reports
Relates :  
Description
With jdk8/tl then we currently get the following warnings from the jaxp repo, it would be nice to clean these up.

## Starting jaxp
Updating jaxp/dist/lib/src.zip
Compiling 1877 files for BUILD_JAXP
/u/alanb/ws/profiles/jaxp/src/com/sun/org/apache/xalan/internal/xslt/EnvironmentCheck.java:1008: warning: non-varargs call of varargs method with inexact argument type for last parameter;
      Method method = clazz.getMethod(DOM_LEVEL3_METHOD, null);
                                                         ^
  cast to Class for a varargs call
  cast to Class[] for a non-varargs call and to suppress this warning
/u/alanb/ws/profiles/jaxp/src/javax/xml/xpath/XPathFactoryFinder.java:336: warning: non-varargs call of varargs method with inexact argument type for last parameter;
                return creationMethod.invoke(null, null);
                                                   ^
  cast to Object for a varargs call
  cast to Object[] for a non-varargs call and to suppress this warning
/u/alanb/ws/profiles/jaxp/src/javax/xml/transform/FactoryFinder.java:213: warning: non-varargs call of varargs method with inexact argument type for last parameter;
                return creationMethod.invoke(null, null);
                                                   ^
  cast to Object for a varargs call
  cast to Object[] for a non-varargs call and to suppress this warning
/u/alanb/ws/profiles/jaxp/src/javax/xml/validation/SchemaFactoryFinder.java:360: warning: non-varargs call of varargs method with inexact argument type for last parameter;
                return creationMethod.invoke(null, null);
                                                   ^
  cast to Object for a varargs call
  cast to Object[] for a non-varargs call and to suppress this warning
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
4 warnings
Creating jaxp/dist/lib/classes.jar
## Finished jaxp (build time 00:00:19)