-
Bug
-
Resolution: Fixed
-
P2
-
9
-
b156
-
Verified
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8174524 | 10 | Robert Field | P2 | Resolved | Fixed | b01 |
jshell> 45
$1 ==> 45
jshell> 72
$2 ==> 72
jshell> if ($1 < $2) {
...> System.out.printf("%d < %d%n", $1, $2);
...> }
45 < 72
jshell> $1 < $2
| Error:
| reached end of file while parsing
| $1 < $2
| ^
$1 > $2
WORKS and returns
$3 ==> false
jshell> 3 < 4
$1 ==> true
$1 ==> 45
jshell> 72
$2 ==> 72
jshell> if ($1 < $2) {
...> System.out.printf("%d < %d%n", $1, $2);
...> }
45 < 72
jshell> $1 < $2
| Error:
| reached end of file while parsing
| $1 < $2
| ^
$1 > $2
WORKS and returns
$3 ==> false
jshell> 3 < 4
$1 ==> true
- backported by
-
JDK-8174524 JShell: less-than causes: reached end of file while parsing
-
- Resolved
-