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

Georgiy Rakov georgiy.rakov at oracle.com
Mon Jun 27 10:11:09 UTC 2016


On 24.06.2016 13:47, Daniel Fuchs wrote:
> 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.
>
Yes, this is a good reason too.

I have no more comments then.

Thank you,
Georgiy.
> best regards,
>
> -- daniel



More information about the core-libs-dev mailing list