RFR: (jaxp) 8005473 : Warnings compiling jaxp

Daniel Fuchs daniel.fuchs at oracle.com
Thu Jan 3 11:33:18 UTC 2013


On 12/27/12 12:06 AM, Joe Wang wrote:
> Hi,
>
> This is a patch to clean up compiling warnings in jaxp.
>
> Bug: http://bugs.sun.com/view_bug.do?bug_id=8005473
> Webrev: http://cr.openjdk.java.net/~joehw/jdk8/8005473/webrev/
>
> Thanks,
> Joe

Hi Joe,

In FactoryFinder.java - line 213,
SchemaFactoryFinder.java - line 360,
XPathFactoryFinder.java - line 336,

I think you could simply do:

    return creationMethod.invoke(null);

since the second parameter is a varargs...

best regards,

-- daniel



More information about the core-libs-dev mailing list