John Kostaras created NETBEANS-1099:
---------------------------------------

             Summary: Scanner in JShell waits for input for ever
                 Key: NETBEANS-1099
                 URL: https://issues.apache.org/jira/browse/NETBEANS-1099
             Project: NetBeans
          Issue Type: Bug
          Components: java - JShell
    Affects Versions: 9.0
         Environment: MacOSX
JDK 10.0.1
Apache NetBeans 9.0 (released 29 July 2018)
            Reporter: John Kostaras
             Fix For: Next


Issue has been encountered with JDK 10.0.1 but it also exists when starting 
NetBeans with JDK 9.

Start JShell from Tools --> Open Java Platform Shell.

Issue the following commands:

{{[1]-> import java.util.Scanner;}}
{{[2]-> Scanner sc = new Scanner(System.in);}}
{{| sc ==> java.util.Scanner[delimiters=\p\{javaWhitespace}+][position=0][match 
valid=fa ...}}
{{[3]-> int a = sc.nextInt();}}

{{Executing, please wait}}

The user is waiting for ever and s/he cannot do anything. In JDK JShell the 
user can enter a value and the program continues. In NetBeans, this is not 
possible. A stop button is displayed, but clicking on it does nothing.

 

 

 



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@netbeans.apache.org
For additional commands, e-mail: commits-h...@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists

Reply via email to