RFR: 8173898: StackWalker.walk throws InternalError if called from a constructor invoked through reflection.
Daniel Fuchs
daniel.fuchs at oracle.com
Fri Feb 3 23:27:44 UTC 2017
Hi Paul,
On 03/02/17 21:54, Paul Sandoz wrote:
>
>> On 3 Feb 2017, at 11:51, Daniel Fuchs <daniel.fuchs at oracle.com> wrote:
>>
>> Hi,
>>
>> Please find below a simple fix for:
>>
>> 8173898: StackWalker.walk throws InternalError if called
>> from a constructor invoked through reflection.
>> https://bugs.openjdk.java.net/browse/JDK-8173898
>>
>> http://cr.openjdk.java.net/~dfuchs/webrev_8173898/webrev.00/
>>
>
> Looks ok.
>
> Do you need invoke Dummy.create via reflection?
>
> 71 List<String> found = ((Dummy)Dummy.class.getMethod("create")
> 72 .invoke(null)).found;
No. But since the bug is about reflection frames not
being filtered out correctly I added it for good measure.
best regards,
-- daniel
>
> Paul.
>
>
>> best regards,
>>
>> -- daniel
>
More information about the core-libs-dev
mailing list