hg: jdk9/dev/jdk: 8173898: StackWalker.walk throws InternalError if called from a constructor invoked through reflection.

daniel.fuchs at oracle.com daniel.fuchs at oracle.com
Wed Feb 8 16:36:47 UTC 2017


Changeset: e56bfa6ae3ce
Author:    dfuchs
Date:      2017-02-08 16:33 +0000
URL:       http://hg.openjdk.java.net/jdk9/dev/jdk/rev/e56bfa6ae3ce

8173898: StackWalker.walk throws InternalError if called from a constructor invoked through reflection.
Summary: StackWalker is fixed to take into account constructor reflection frames. The specification of StackWalker.Option.SHOW_REFLECT_FRAMES is also clarified in this regard.
Reviewed-by: bchristi, lancea, mchung, psandoz

! src/java.base/share/classes/java/lang/StackStreamFactory.java
! src/java.base/share/classes/java/lang/StackWalker.java
! test/java/lang/StackWalker/Basic.java
+ test/java/lang/StackWalker/ReflectionFrames.java



More information about the jdk9-dev-changes mailing list