You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by "Andrew Cornwall (JIRA)" <ji...@apache.org> on 2008/03/04 18:17:40 UTC

[jira] Updated: (HARMONY-5570) [classlib][pack200] LineNumberTableAttribute being computed incorrectly

     [ https://issues.apache.org/jira/browse/HARMONY-5570?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Andrew Cornwall updated HARMONY-5570:
-------------------------------------

    Attachment: mypack.pack
                mypack.jar

Attached mypack.pack (test case) and mypack.jar (original JAR file used to build .pack)

> [classlib][pack200] LineNumberTableAttribute being computed incorrectly
> -----------------------------------------------------------------------
>
>                 Key: HARMONY-5570
>                 URL: https://issues.apache.org/jira/browse/HARMONY-5570
>             Project: Harmony
>          Issue Type: Bug
>          Components: Classlib
>         Environment: Latest Pack200
>            Reporter: Andrew Cornwall
>         Attachments: mypack.jar, mypack.pack
>
>
> In the latest Pack200 code, the LineNumberTable attribute is being calculated incorrectly. It appears to be right for a single class at a time, but when multiple classes are being unpacked the line_number values go strange.
> To reproduce, unpack the attached mypack.pack and look at the LineNumberTable attribute for CPString.<init>. The LineNumberTable in the Harmony version is:
>               attribute LineNumberTable {
>                 attribute_name_index = #88  // "LineNumberTable"
>                 attribute_length = 18
>                 line_number_table_length = 4
>                 line_number_table {
>                     // start_pc line_number
>                     0 2323
>                     7 2324
>                     14 2325
>                     35 2327
>                 }
>               }
> whereas the LineNumberTable should be:
>               attribute LineNumberTable {
>                 attribute_name_index = #9  // "LineNumberTable"
>                 attribute_length = 18
>                 line_number_table_length = 4
>                 line_number_table {
>                     // start_pc line_number
>                     0 27
>                     7 28
>                     14 29
>                     35 31
>                 }
> If I had to guess, I'd bet the initial value is computed incorrectly, and subsequent deltas inherit the error.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.