Javac compiler error discovered via project Kulla REPL?

Alex Buckley alex.buckley at
Thu Apr 16 18:40:46 UTC 2015

The situation seems to be that the REPL gives no error for the 
identifier "ClassName" on the LHS of the assignment. Therefore, it must 
have been possible to classify the identifier as a simple name, in 
particular as a TypeName. Then, the use of the TypeName on the RHS of 
the assignment cannot be an error.

I can imagine an alternative situation: the identifier "ClassName" is 
totally made up, and the REPL just happens to be reporting only one of 
the two "cannot find symbol" errors indicated by JDK-8077970.

Which situation is it?


On 4/16/2015 8:07 AM, Jan Lahoda wrote:
> Hello Martijn,
> I've filled:
> Thanks,
>      Jan
> On 16.4.2015 13:35, Martijn Verburg wrote:
>> Hi all,
>>  From the REPL hackday we had recently:
>> "Following error message might be confusing, as the symbol might not be a
>> variable:
>> -> ClassName x = ClassName.create()
>> |  cannot find symbol
>> | symbol:   variable ClassName
>> |  ClassName x = ClassName.create();
>> |                ^-------^
>> "
>> Kulla team suggested this is a Java compiler (javac) error message and it
>> should be submitted as a bug report against javac.
>> Cheers,
>> Martijn

More information about the compiler-dev mailing list