Consider code like:
---
public class ConsoleTest {
public static void main(String... args) {
System.console().readLine("%%s");
}
}
---
This should print '%s' as the prompt, but it prints nothing.
---
public class ConsoleTest {
public static void main(String... args) {
System.console().readLine("%%s");
}
}
---
This should print '%s' as the prompt, but it prints nothing.
- relates to
-
JDK-8331681 Test that jdk.internal.io.JdkConsole does not interpret prompts
-
- Resolved
-