Bugs item #976470, was opened at 2004-06-21 09:42
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=438935&aid=976470&group_id=44253
Category: Compiler integration
Group: Ugly
Status: Open
Resolution: None
Priority: 5
Submitted By: Nor Jaidi Tuah (norjaidi)
Assigned to: Nobody/Anonymous (nobody)
Summary: Compiler error not linked to source
Initial Comment:
Language level: elementary
Compiler: javac 1.5 beta 2
Trying out how beginner-friendly the elementary level
really is, I stumbled onto the following bug trap.
Content of Z.dj0:
class Z {
int x;
int add(int x) {
z = 0; // intentional error
return x + 1;
}
}
Compiler output:
1 error found:
File: (no associated file) [line: (no source location)]
Error: java.lang.RuntimeException: All lookups should
succeed since we've already added all types to the
symbolTable. Cannot find z. It is either
null:edu.rice.cs.javalanglevels.SymbolData@742fc0, or
it is a continuation
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=438935&aid=976470&group_id=44253
|