Bugs

andrei.eremeev andrei.eremeev at oracle.com
Thu May 28 15:28:07 UTC 2015


Hi REPL team,

1. Incorrect error code message for the following source:
-> class A { void f() { return g(); } }
|  Error:
|  incompatible types: unexpected return value
|  class A { void f() { return g(); } }
|                              ^-^
|  Error:
|  cannot find symbol
|    symbol:   method g()
|  class A { void f() { return g(); } }
|                              ^

I think "cannot find symbol" error should be omitted.

2. Outcome of the second declaration of class A is Replaced, while it 
should be Added. (See ClassesTest#testSignature2)

-> class A { void f() { return g(); } }
|  Error:
|  incompatible types: unexpected return value
|  class A { void f() { return g(); } }
|                              ^-^
|  Error:
|  cannot find symbol
|    symbol:   method g()
|  class A { void f() { return g(); } }
|                              ^

-> class A { int f() { return g(); } }
|  Replaced class A, however, it cannot be referenced until method g() 
is declared

Andrei Eremeev


More information about the kulla-dev mailing list