[JAXP] RFR: 8153082: Update XSTL compiler to generate classes that invoke addReads

Daniel Fuchs daniel.fuchs at oracle.com
Fri Jul 22 16:16:09 UTC 2016


Hi,

Please find below a fix for
8153082: Update XSTL compiler to generate classes that invoke addReads
https://bugs.openjdk.java.net/browse/JDK-8153082

This fix removes a dependency from java.xml to an internal
java base API.

http://cr.openjdk.java.net/~dfuchs/webrev_8153082/webrev.00/

It changes FunctionCall.java to generate an additional
addReads statement before invoking a method on an external
class.

Namely, where the generated translet class used to have
a call to:

    com.foo.Bar.func(...);
    (resp: new com.foo.Bar(....))

it will now also contain an additional call to Module.addReads
to add the external's class module to the list of modules that
the generated translet's module can read. So the generated
code now looks like:

    <TransletClass>.class.getModule().addReads(
                    Class.forName("com.foo.Bar").getModule());
    com.foo.Bar.func(...);
    (resp: new com.foo.Bar(....))

best regards,

-- daniel


More information about the core-libs-dev mailing list