JDK-4993037 : illegal forward ref not detected when on a long line
  • Type: Bug
  • Component: tools
  • Sub-Component: javac
  • Affected Version: 5.0
  • Priority: P4
  • Status: Closed
  • Resolution: Duplicate
  • OS: solaris_8
  • CPU: generic
  • Submitted: 2004-02-11
  • Updated: 2005-05-18
  • Resolved: 2005-05-18
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 6
6Resolved
Related Reports
Duplicate :  
Relates :  
Description
The following program compiles withoug complaint from javac, even though the
final static variable b is being used before set by another static initializer.
When the comment is removed, the compiler correctly diagnoses the problem.

class Pos {
/*................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................*/ static final int a = b;
    static final int b = Integer.parseInt("23");
    int x = a + b;
}


Comments
CONVERTED DATA BugTraq+ Release Management Values COMMIT TO FIX: mustang
17-07-2004

SUGGESTED FIX The problem is caused by the fact that javac packs the column position into a fixed width field, which overflows into the line field. javac should instead maintain positions as character offsets into the translation unit.
17-07-2004

EVALUATION we'll try to get this into 1.5.1. ###@###.### 2004-02-11
11-02-2004