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

CharacterRangeTable: initializer entries may have inaccurate ending position

XMLWordPrintable

    • beta3
    • generic
    • generic
    • Verified



      Name: poR10007 Date: 08/17/2001



      Javac (jdk1.4.0beta-b76) when running in -Xjcov mode may produce inaccurate
      ending source positions for CharacterRangeTable entries containing info about
      statements of instance and static initializers.

      In the following test:

      --Test.java---------------------------------------
      public class Test {
          Object array[] = { "red", "blue" };
      }
      --------------------------------------------------

      the only statement contained in class definition has the ending position
      at the closing brace of the array initializer. But the entry in the
      CharacterRangeTable says that the ending position is at the end of string
      literal "blue".

      ======================================================================

            gafter Neal Gafter (Inactive)
            passunw Pas Pas (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: