Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Windows: Stream issue #112

Open
ukeller opened this issue Jan 12, 2017 · 0 comments
Open

Windows: Stream issue #112

ukeller opened this issue Jan 12, 2017 · 0 comments

Comments

@ukeller
Copy link

ukeller commented Jan 12, 2017

Steps:

  • Launch javarepl 428 on Windows 10, Java8 112 64bit,
  • java.util.Arrays.asList().stream().mapToInt(x->(int)x).sum()

Expected:

  • java.lang.Integer res0 = 0

Actual:

  • First run shows exception, second run hangs
java> java.util.Arrays.asList().stream().mapToInt(x->(int)x).sum()
ERROR: <identifier> expected
  public java.lang.Object<Object><Object, java.lang.Integer, java.util.stream.IntStream><Object><Object> res0 = valueOf("res0");
                                 ^
ERROR: <identifier> expected
  public java.lang.Object<Object><Object, java.lang.Integer, java.util.stream.IntStream><Object><Object> res0 = valueOf("res0");
                                        ^
ERROR: ';' expected
  public java.lang.Object<Object><Object, java.lang.Integer, java.util.stream.IntStream><Object><Object> res0 = valueOf("res0");
                                              ^
ERROR: <identifier> expected
  public java.lang.Object<Object><Object, java.lang.Integer, java.util.stream.IntStream><Object><Object> res0 = valueOf("res0");
                                                           ^
ERROR: ';' expected
  public java.lang.Object<Object><Object, java.lang.Integer, java.util.stream.IntStream><Object><Object> res0 = valueOf("res0");
                                                                 ^
ERROR: <identifier> expected
  public java.lang.Object<Object><Object, java.lang.Integer, java.util.stream.IntStream><Object><Object> res0 = valueOf("res0");
                                                                                       ^
ERROR: illegal start of type
  public java.lang.Object<Object><Object, java.lang.Integer, java.util.stream.IntStream><Object><Object> res0 = valueOf("res0");
                                                                                                ^
ERROR: illegal start of expression
  public java.lang.Object<Object><Object, java.lang.Integer, java.util.stream.IntStream><Object><Object> res0 = valueOf("res0");
                                                                                                         ^
ERROR: '(' expected
  public java.lang.Object<Object><Object, java.lang.Integer, java.util.stream.IntStream><Object><Object> res0 = valueOf("res0");
                                                                                                              ^
ERROR: invalid method declaration; return type required
  public java.lang.Object<Object><Object, java.lang.Integer, java.util.stream.IntStream><Object><Object> res0 = valueOf("res0");
                                                                                                                ^
ERROR: illegal start of type
  public java.lang.Object<Object><Object, java.lang.Integer, java.util.stream.IntStream><Object><Object> res0 = valueOf("res0");
                                                                                                                        ^
java> java.util.Arrays.asList().stream().mapToInt(x->(int)x)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant