8141415: JShell: wrap erroneous with one-liner comment-outed imports jshell_support_jdk9sync
authorshinyafox
Sun, 29 May 2016 23:46:49 +0900
branchjshell_support_jdk9sync
changeset 4825399b46764934
parent 4824 db2d9602ce7d
child 4828 569389069974
8141415: JShell: wrap erroneous with one-liner comment-outed imports
Reviewed-by: rfield
src/jdk.jshell/share/classes/jdk/jshell/ImportSnippet.java
     1.1 --- a/src/jdk.jshell/share/classes/jdk/jshell/ImportSnippet.java	Fri May 27 10:37:46 2016 -0700
     1.2 +++ b/src/jdk.jshell/share/classes/jdk/jshell/ImportSnippet.java	Sun May 29 23:46:49 2016 +0900
     1.3 @@ -101,6 +101,6 @@
     1.4  
     1.5      @Override
     1.6      String importLine(JShell state) {
     1.7 -        return source();
     1.8 +        return guts().wrapped();
     1.9      }
    1.10  }