harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sian January (JIRA)" <j...@apache.org>
Subject [jira] Assigned: (HARMONY-5570) [classlib][pack200] LineNumberTableAttribute being computed incorrectly
Date Wed, 05 Mar 2008 13:57:40 GMT

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

Sian January reassigned HARMONY-5570:
-------------------------------------

    Assignee: Sian January

> [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
>            Assignee: Sian January
>         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.


Mime
View raw message