RFR: 8173898: StackWalker.walk throws InternalError if called from a constructor invoked through reflection.
mandy.chung at oracle.com
Mon Feb 6 00:16:40 UTC 2017
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?
> On Feb 3, 2017, at 11:51 AM, Daniel Fuchs <daniel.fuchs at oracle.com> wrote:
> Please find below a simple fix for:
> 8173898: StackWalker.walk throws InternalError if called
> from a constructor invoked through reflection.
> best regards,
> -- daniel
More information about the core-libs-dev