diff -r dc9102c475f3 -r 5dfd0950317c jdk/src/java.base/share/classes/java/lang/StackStreamFactory.java --- a/jdk/src/java.base/share/classes/java/lang/StackStreamFactory.java Thu Feb 09 17:21:47 2017 +0000 +++ b/jdk/src/java.base/share/classes/java/lang/StackStreamFactory.java Fri Feb 10 09:04:39 2017 +0000 @@ -684,7 +684,7 @@ frames[n++] = caller; } if (frames[1] == null) { - throw new IllegalStateException("no caller frame"); + throw new IllegalCallerException("no caller frame"); } return n; }