RFR: 8150173: JAXBContext.newInstance causes PrivilegedActionException when createContext's declared in absract class extended by discovered JAXB implementation
Lance Andersen
lance.andersen at oracle.com
Tue Jun 21 18:11:53 UTC 2016
Hi Daniel,
Looks OK. I know you have run the JCK tests as well.
Best
Lance
> On Jun 21, 2016, at 1:39 PM, Daniel Fuchs <daniel.fuchs at oracle.com> wrote:
>
> Hi,
>
> Please find below a somewhat trivial patch for
>
> 8150173: JAXBContext.newInstance causes PrivilegedActionException
> when createContext's declared in absract class extended
> by discovered JAXB implementation
> https://bugs.openjdk.java.net/browse/JDK-8150173
>
> Patch:
> http://cr.openjdk.java.net/~dfuchs/webrev_8150173/webrev.00
>
> This is an oversight that was introduced with JDK-8145104.
>
> The issue is simply that newInstance() must be invoked on
> the concrete class, not on the class that defines the
> createContext method.
>
> best regards,
>
> -- daniel
<http://oracle.com/us/design/oracle-email-sig-198324.gif>
<http://oracle.com/us/design/oracle-email-sig-198324.gif> <http://oracle.com/us/design/oracle-email-sig-198324.gif>
<http://oracle.com/us/design/oracle-email-sig-198324.gif>Lance Andersen| Principal Member of Technical Staff | +1.781.442.2037
Oracle Java Engineering
1 Network Drive
Burlington, MA 01803
Lance.Andersen at oracle.com <mailto:Lance.Andersen at oracle.com>
More information about the core-libs-dev
mailing list