RFR: 8173898: StackWalker.walk throws InternalError if called from a constructor invoked through reflection.
Mandy Chung
mandy.chung at oracle.com
Mon Feb 6 00:16:40 UTC 2017
Hi Daniel,
Thanks for the patch and uncover that Constructor::newInstance is not covered by SHOW_REFLECT_FRAMES.
The change looks okay. The javadoc of SHOW_REFLECT_FRAMES can be clarified to include Constructor::newInstance. As for the test, can you separate this in a new test to test showing and hiding reflecton frames and also getCallerClass?
Mandy
> On Feb 3, 2017, at 11:51 AM, 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/
>
> best regards,
>
> -- daniel
More information about the core-libs-dev
mailing list