netbeans-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "John Kostaras (JIRA)" <>
Subject [jira] [Created] (NETBEANS-1099) Scanner in JShell waits for input for ever
Date Thu, 02 Aug 2018 08:16:00 GMT
John Kostaras created NETBEANS-1099:

             Summary: Scanner in JShell waits for input for ever
                 Key: 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

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

Issue the following commands:

{{[1]-> import java.util.Scanner;}}
{{[2]-> Scanner sc = new Scanner(;}}
{{| 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

To unsubscribe, e-mail:
For additional commands, e-mail:

For further information about the NetBeans mailing lists, visit:

View raw message