-
Bug
-
Resolution: Fixed
-
P3
-
None
Steps to reproduce:
-> int a = q
| Replaced variable a, however, it cannot be referenced until variable q is declared
-> /v
Exception in thread "main" java.lang.IllegalArgumentException: Key parameter if varValue() 'VariableKey(a)#18' must be Active, it is: ActiveFailed
at jdk.internal.jshell.impl.JShellStateImpl.varValue(JShellStateImpl.java:96)
at jdk.internal.jshell.tool.JShellTool.cmdVars(JShellTool.java:1116)
at jdk.internal.jshell.tool.JShellTool.lambda$new$15(JShellTool.java:585)
at jdk.internal.jshell.tool.JShellTool.processCommand(JShellTool.java:433)
at jdk.internal.jshell.tool.JShellTool.run(JShellTool.java:395)
at jdk.internal.jshell.tool.JShellTool.start(JShellTool.java:221)
at jdk.internal.jshell.tool.JShellTool.start(JShellTool.java:200)
at jdk.internal.jshell.tool.JShellTool.main(JShellTool.java:190)
-> int a = q
| Replaced variable a, however, it cannot be referenced until variable q is declared
-> /v
Exception in thread "main" java.lang.IllegalArgumentException: Key parameter if varValue() 'VariableKey(a)#18' must be Active, it is: ActiveFailed
at jdk.internal.jshell.impl.JShellStateImpl.varValue(JShellStateImpl.java:96)
at jdk.internal.jshell.tool.JShellTool.cmdVars(JShellTool.java:1116)
at jdk.internal.jshell.tool.JShellTool.lambda$new$15(JShellTool.java:585)
at jdk.internal.jshell.tool.JShellTool.processCommand(JShellTool.java:433)
at jdk.internal.jshell.tool.JShellTool.run(JShellTool.java:395)
at jdk.internal.jshell.tool.JShellTool.start(JShellTool.java:221)
at jdk.internal.jshell.tool.JShellTool.start(JShellTool.java:200)
at jdk.internal.jshell.tool.JShellTool.main(JShellTool.java:190)
- blocks
-
JDK-8080347 jshell tool: /vars when the status is other than Active
-
- Closed
-