Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-4993037

illegal forward ref not detected when on a long line

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • P4
    • 6
    • 5.0
    • tools
    • generic
    • solaris_8

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

      Attachments

        Issue Links

          Activity

            People

              ahe Peter Ahe
              gafter Neal Gafter
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: