langtools/test/jdk/jshell/ToolSimpleTest.java
changeset 40601 9af676462cbf
parent 40588 b5c32bfa9710
child 41514 a75c2b869d8d
equal deleted inserted replaced
40600:3874367e6e6f 40601:9af676462cbf
    21  * questions.
    21  * questions.
    22  */
    22  */
    23 
    23 
    24 /*
    24 /*
    25  * @test
    25  * @test
    26  * @bug 8153716 8143955 8151754 8150382 8153920 8156910 8131024 8160089
    26  * @bug 8153716 8143955 8151754 8150382 8153920 8156910 8131024 8160089 8153897
    27  * @summary Simple jshell tool tests
    27  * @summary Simple jshell tool tests
    28  * @modules jdk.compiler/com.sun.tools.javac.api
    28  * @modules jdk.compiler/com.sun.tools.javac.api
    29  *          jdk.compiler/com.sun.tools.javac.main
    29  *          jdk.compiler/com.sun.tools.javac.main
    30  *          jdk.jdeps/com.sun.tools.javap
    30  *          jdk.jdeps/com.sun.tools.javap
    31  *          jdk.jshell/jdk.internal.jshell.tool
    31  *          jdk.jshell/jdk.internal.jshell.tool
   155                 (a) -> assertCommand(a, "x", "x ==> 72"),
   155                 (a) -> assertCommand(a, "x", "x ==> 72"),
   156                 (a) -> assertCommand(a, "/vars", "|    int x = 72")
   156                 (a) -> assertCommand(a, "/vars", "|    int x = 72")
   157         );
   157         );
   158     }
   158     }
   159 
   159 
   160     @Test(enabled = false) // TODO 8153897
       
   161     public void defineUnresolvedVar() {
   160     public void defineUnresolvedVar() {
   162         test(
   161         test(
   163                 (a) -> assertCommand(a, "undefined x",
   162                 (a) -> assertCommand(a, "undefined x",
   164                         "|  created variable x, however, it cannot be referenced until class undefined is declared"),
   163                         "|  created variable x, however, it cannot be referenced until class undefined is declared"),
   165                 (a) -> assertCommand(a, "/vars", "|    undefined x = (not-active)")
   164                 (a) -> assertCommand(a, "/vars", "|    undefined x = (not-active)")