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

CharacterRangeTable: initializer entries may have inaccurate ending position

    XMLWordPrintable

    Details

    • Subcomponent:
    • Resolved In Build:
      beta3
    • CPU:
      generic
    • OS:
      generic
    • Verification:
      Verified

      Description



      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".

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

        Attachments

          Activity

            People

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

              Dates

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: