RFR: 8150173: JAXBContext.newInstance causes PrivilegedActionException when createContext's declared in absract class extended by discovered JAXB implementation

Daniel Fuchs daniel.fuchs at oracle.com
Fri Jun 24 10:47:25 UTC 2016


Thanks Georgiy!

On 24/06/16 11:25, Georgiy Rakov wrote:
> After some thoughts I agree, redefining createContext would just check
> that reflection deals with methods overriding properly.
>
> BTW if a factory is an instance of JAXBContextFactory it would seem more
> natural to invoke createContext by first casting instantiated provider
> to JAXBContextFactory and then invoking its createContext method in a
> regular way rather than through reflection; now it's always invoked
> through reflection.

Right. I agree that this is a bit bizarre.
I'd prefer to keep the changes minimal however.

best regards,

-- daniel


More information about the core-libs-dev mailing list