Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8225913 | 14 | Robert Field | P3 | Resolved | Fixed | team |
jshell> /rel -res
| Restarting and restoring from previous state.
-: void p() throws Exception { ((String) null).toString(); }
-: void n() throws Exception { try { p(); } catch (Exception ex) { throw new IOException("bar", ex); }}
-: void m() { try { n(); } catch (Exception ex) { throw new RuntimeException("foo", ex); }}
-: void c() throws Throwable { p(); }
-: /drop p
-: c()
jshell> m()
| Error:
| cannot find symbol
| symbol: method m()
| m()
| ^
jshell> /met
| void n()
| which cannot be referenced until method p() is declared
| void m()
| which cannot be referenced until method n() is declared
| void c()
| which cannot be invoked until method p() is declared
| Restarting and restoring from previous state.
-: void p() throws Exception { ((String) null).toString(); }
-: void n() throws Exception { try { p(); } catch (Exception ex) { throw new IOException("bar", ex); }}
-: void m() { try { n(); } catch (Exception ex) { throw new RuntimeException("foo", ex); }}
-: void c() throws Throwable { p(); }
-: /drop p
-: c()
jshell> m()
| Error:
| cannot find symbol
| symbol: method m()
| m()
| ^
jshell> /met
| void n()
| which cannot be referenced until method p() is declared
| void m()
| which cannot be referenced until method n() is declared
| void c()
| which cannot be invoked until method p() is declared
- backported by
-
JDK-8225913 JShell: corralling not restored on drop
- Resolved