illegal forward ref not detected when on a long line

XMLWordPrintable

    • Type: Bug
    • Resolution: Duplicate
    • Priority: P4
    • 6
    • Affects Version/s: 5.0
    • Component/s: tools
    • generic
    • solaris_8

      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;
      }

            Assignee:
            Peter Ahe
            Reporter:
            Neal Gafter (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: