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

Debug pointer at bad position

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P4
    • 8
    • 7
    • tools
    • b93
    • generic
    • generic
    • Verified

    Description

      See https://netbeans.org/bugzilla/show_bug.cgi?id=188743

      Get the sources via:
      svn co -r 1114 https://java-nio-charset-enhanced.dev.java.net/svn/java-nio-charset-enhanced/branches/JDK-7/j_l_Character_names

      Open the project in NetBeans, select configuration gen_sherman2_6 and Java platform jdk1.7.0-b84/fastdebug and build it.
      java/lang/CharacterNames6.java has an assert statement at line 103. It's span accross three lines. But when I look at the compiled bytecode (javap -private -c -l java/lang/CharacterNames6), the LineNumberTable of initNames() method is:
         ...
         line 101: 188
         line 105: 199
         ...
      Code index 199 is the *beginning* of the assert statement, which starts at line 103. Therefore IMHO line 103 should map to code index 199.

      Attachments

        Activity

          People

            vromero Vicente Arturo Romero Zaldivar
            mentlich Martin Entlicher
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: