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/10 21:34:46 UTC
[jira] Created: (HARMONY-5589) [classlib][pack200] AttributeLayout
KS returning negative index
[classlib][pack200] AttributeLayout KS returning negative index
---------------------------------------------------------------
Key: HARMONY-5589
URL: https://issues.apache.org/jira/browse/HARMONY-5589
Project: Harmony
Issue Type: Bug
Components: Classlib
Environment: Pack200 HEAD
Reporter: Andrew Cornwall
When running Pack200 on the attached testcase, I get a:
Thread [main] (Suspended (exception Pack200Exception("Cannot have a negative range")))
SegmentConstantPool.getValue(int, long) line: 65
AttributeLayout.getValue(String, long, SegmentConstantPool) line: 76
AttributeLayout.getValue(long, String, SegmentConstantPool) line: 198
ClassBands.parseFieldAttrBands(InputStream) line: 243
ClassBands.parseFieldBands(InputStream) line: 152
ClassBands.unpack(InputStream) line: 141
Segment.parseSegment(InputStream) line: 332
Segment.unpack(InputStream, JarOutputStream) line: 352
Archive.unpack() line: 146
TestUnpack.main(String[]) line: 15
This appears to be due to the fact that value is -116 at the following point in AttributeLayout.getValue():
} else if (layout.startsWith("K")) { //$NON-NLS-1$
char type = layout.charAt(1);
switch (type) {
case 'S': // String
--> return pool.getValue(SegmentConstantPool.CP_STRING, value);
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (HARMONY-5589) [classlib][pack200] AttributeLayout
KS returning negative index
Posted by "Andrew Cornwall (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HARMONY-5589?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Andrew Cornwall updated HARMONY-5589:
-------------------------------------
Attachment: (was: com.ibm.collaboration.realtime.alertmanager_7.5.1.20070416.jar)
> [classlib][pack200] AttributeLayout KS returning negative index
> ---------------------------------------------------------------
>
> Key: HARMONY-5589
> URL: https://issues.apache.org/jira/browse/HARMONY-5589
> Project: Harmony
> Issue Type: Bug
> Components: Classlib
> Environment: Pack200 HEAD
> Reporter: Andrew Cornwall
> Assignee: Sian January
> Fix For: 5.0M6
>
>
> When running Pack200 on the attached testcase, I get a:
> Thread [main] (Suspended (exception Pack200Exception("Cannot have a negative range")))
> SegmentConstantPool.getValue(int, long) line: 65
> AttributeLayout.getValue(String, long, SegmentConstantPool) line: 76
> AttributeLayout.getValue(long, String, SegmentConstantPool) line: 198
> ClassBands.parseFieldAttrBands(InputStream) line: 243
> ClassBands.parseFieldBands(InputStream) line: 152
> ClassBands.unpack(InputStream) line: 141
> Segment.parseSegment(InputStream) line: 332
> Segment.unpack(InputStream, JarOutputStream) line: 352
> Archive.unpack() line: 146
> TestUnpack.main(String[]) line: 15
> This appears to be due to the fact that value is -116 at the following point in AttributeLayout.getValue():
> } else if (layout.startsWith("K")) { //$NON-NLS-1$
> char type = layout.charAt(1);
> switch (type) {
> case 'S': // String
> --> return pool.getValue(SegmentConstantPool.CP_STRING, value);
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (HARMONY-5589) [classlib][pack200] AttributeLayout
KS returning negative index
Posted by "Andrew Cornwall (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HARMONY-5589?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Andrew Cornwall updated HARMONY-5589:
-------------------------------------
Attachment: (was: com.ibm.collaboration.realtime.alertmanager_7.5.1.20070416.pack.gz)
> [classlib][pack200] AttributeLayout KS returning negative index
> ---------------------------------------------------------------
>
> Key: HARMONY-5589
> URL: https://issues.apache.org/jira/browse/HARMONY-5589
> Project: Harmony
> Issue Type: Bug
> Components: Classlib
> Environment: Pack200 HEAD
> Reporter: Andrew Cornwall
> Assignee: Sian January
> Fix For: 5.0M6
>
>
> When running Pack200 on the attached testcase, I get a:
> Thread [main] (Suspended (exception Pack200Exception("Cannot have a negative range")))
> SegmentConstantPool.getValue(int, long) line: 65
> AttributeLayout.getValue(String, long, SegmentConstantPool) line: 76
> AttributeLayout.getValue(long, String, SegmentConstantPool) line: 198
> ClassBands.parseFieldAttrBands(InputStream) line: 243
> ClassBands.parseFieldBands(InputStream) line: 152
> ClassBands.unpack(InputStream) line: 141
> Segment.parseSegment(InputStream) line: 332
> Segment.unpack(InputStream, JarOutputStream) line: 352
> Archive.unpack() line: 146
> TestUnpack.main(String[]) line: 15
> This appears to be due to the fact that value is -116 at the following point in AttributeLayout.getValue():
> } else if (layout.startsWith("K")) { //$NON-NLS-1$
> char type = layout.charAt(1);
> switch (type) {
> case 'S': // String
> --> return pool.getValue(SegmentConstantPool.CP_STRING, value);
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Closed: (HARMONY-5589) [classlib][pack200] AttributeLayout
KS returning negative index
Posted by "Andrew Cornwall (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HARMONY-5589?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Andrew Cornwall closed HARMONY-5589.
------------------------------------
This appears to have solved the problem. Thanks!
> [classlib][pack200] AttributeLayout KS returning negative index
> ---------------------------------------------------------------
>
> Key: HARMONY-5589
> URL: https://issues.apache.org/jira/browse/HARMONY-5589
> Project: Harmony
> Issue Type: Bug
> Components: Classlib
> Environment: Pack200 HEAD
> Reporter: Andrew Cornwall
> Assignee: Sian January
> Fix For: 5.0M6
>
>
> When running Pack200 on the attached testcase, I get a:
> Thread [main] (Suspended (exception Pack200Exception("Cannot have a negative range")))
> SegmentConstantPool.getValue(int, long) line: 65
> AttributeLayout.getValue(String, long, SegmentConstantPool) line: 76
> AttributeLayout.getValue(long, String, SegmentConstantPool) line: 198
> ClassBands.parseFieldAttrBands(InputStream) line: 243
> ClassBands.parseFieldBands(InputStream) line: 152
> ClassBands.unpack(InputStream) line: 141
> Segment.parseSegment(InputStream) line: 332
> Segment.unpack(InputStream, JarOutputStream) line: 352
> Archive.unpack() line: 146
> TestUnpack.main(String[]) line: 15
> This appears to be due to the fact that value is -116 at the following point in AttributeLayout.getValue():
> } else if (layout.startsWith("K")) { //$NON-NLS-1$
> char type = layout.charAt(1);
> switch (type) {
> case 'S': // String
> --> return pool.getValue(SegmentConstantPool.CP_STRING, value);
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Assigned: (HARMONY-5589) [classlib][pack200] AttributeLayout
KS returning negative index
Posted by "Sian January (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HARMONY-5589?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Sian January reassigned HARMONY-5589:
-------------------------------------
Assignee: Sian January
> [classlib][pack200] AttributeLayout KS returning negative index
> ---------------------------------------------------------------
>
> Key: HARMONY-5589
> URL: https://issues.apache.org/jira/browse/HARMONY-5589
> Project: Harmony
> Issue Type: Bug
> Components: Classlib
> Environment: Pack200 HEAD
> Reporter: Andrew Cornwall
> Assignee: Sian January
> Attachments: com.ibm.collaboration.realtime.alertmanager_7.5.1.20070416.jar, com.ibm.collaboration.realtime.alertmanager_7.5.1.20070416.pack.gz
>
>
> When running Pack200 on the attached testcase, I get a:
> Thread [main] (Suspended (exception Pack200Exception("Cannot have a negative range")))
> SegmentConstantPool.getValue(int, long) line: 65
> AttributeLayout.getValue(String, long, SegmentConstantPool) line: 76
> AttributeLayout.getValue(long, String, SegmentConstantPool) line: 198
> ClassBands.parseFieldAttrBands(InputStream) line: 243
> ClassBands.parseFieldBands(InputStream) line: 152
> ClassBands.unpack(InputStream) line: 141
> Segment.parseSegment(InputStream) line: 332
> Segment.unpack(InputStream, JarOutputStream) line: 352
> Archive.unpack() line: 146
> TestUnpack.main(String[]) line: 15
> This appears to be due to the fact that value is -116 at the following point in AttributeLayout.getValue():
> } else if (layout.startsWith("K")) { //$NON-NLS-1$
> char type = layout.charAt(1);
> switch (type) {
> case 'S': // String
> --> return pool.getValue(SegmentConstantPool.CP_STRING, value);
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (HARMONY-5589) [classlib][pack200] AttributeLayout
KS returning negative index
Posted by "Andrew Cornwall (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HARMONY-5589?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Andrew Cornwall updated HARMONY-5589:
-------------------------------------
Attachment: com.ibm.collaboration.realtime.alertmanager_7.5.1.20070416.jar
com.ibm.collaboration.realtime.alertmanager_7.5.1.20070416.pack.gz
.pack.gz is file packed with Sun pack200. .jar is original file.
> [classlib][pack200] AttributeLayout KS returning negative index
> ---------------------------------------------------------------
>
> Key: HARMONY-5589
> URL: https://issues.apache.org/jira/browse/HARMONY-5589
> Project: Harmony
> Issue Type: Bug
> Components: Classlib
> Environment: Pack200 HEAD
> Reporter: Andrew Cornwall
> Attachments: com.ibm.collaboration.realtime.alertmanager_7.5.1.20070416.jar, com.ibm.collaboration.realtime.alertmanager_7.5.1.20070416.pack.gz
>
>
> When running Pack200 on the attached testcase, I get a:
> Thread [main] (Suspended (exception Pack200Exception("Cannot have a negative range")))
> SegmentConstantPool.getValue(int, long) line: 65
> AttributeLayout.getValue(String, long, SegmentConstantPool) line: 76
> AttributeLayout.getValue(long, String, SegmentConstantPool) line: 198
> ClassBands.parseFieldAttrBands(InputStream) line: 243
> ClassBands.parseFieldBands(InputStream) line: 152
> ClassBands.unpack(InputStream) line: 141
> Segment.parseSegment(InputStream) line: 332
> Segment.unpack(InputStream, JarOutputStream) line: 352
> Archive.unpack() line: 146
> TestUnpack.main(String[]) line: 15
> This appears to be due to the fact that value is -116 at the following point in AttributeLayout.getValue():
> } else if (layout.startsWith("K")) { //$NON-NLS-1$
> char type = layout.charAt(1);
> switch (type) {
> case 'S': // String
> --> return pool.getValue(SegmentConstantPool.CP_STRING, value);
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Resolved: (HARMONY-5589) [classlib][pack200] AttributeLayout
KS returning negative index
Posted by "Sian January (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HARMONY-5589?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Sian January resolved HARMONY-5589.
-----------------------------------
Resolution: Fixed
Fix Version/s: 5.0M6
Fixed at r636332. Andrew - please confirm that this fully resolves your issue.
> [classlib][pack200] AttributeLayout KS returning negative index
> ---------------------------------------------------------------
>
> Key: HARMONY-5589
> URL: https://issues.apache.org/jira/browse/HARMONY-5589
> Project: Harmony
> Issue Type: Bug
> Components: Classlib
> Environment: Pack200 HEAD
> Reporter: Andrew Cornwall
> Assignee: Sian January
> Fix For: 5.0M6
>
> Attachments: com.ibm.collaboration.realtime.alertmanager_7.5.1.20070416.jar, com.ibm.collaboration.realtime.alertmanager_7.5.1.20070416.pack.gz
>
>
> When running Pack200 on the attached testcase, I get a:
> Thread [main] (Suspended (exception Pack200Exception("Cannot have a negative range")))
> SegmentConstantPool.getValue(int, long) line: 65
> AttributeLayout.getValue(String, long, SegmentConstantPool) line: 76
> AttributeLayout.getValue(long, String, SegmentConstantPool) line: 198
> ClassBands.parseFieldAttrBands(InputStream) line: 243
> ClassBands.parseFieldBands(InputStream) line: 152
> ClassBands.unpack(InputStream) line: 141
> Segment.parseSegment(InputStream) line: 332
> Segment.unpack(InputStream, JarOutputStream) line: 352
> Archive.unpack() line: 146
> TestUnpack.main(String[]) line: 15
> This appears to be due to the fact that value is -116 at the following point in AttributeLayout.getValue():
> } else if (layout.startsWith("K")) { //$NON-NLS-1$
> char type = layout.charAt(1);
> switch (type) {
> case 'S': // String
> --> return pool.getValue(SegmentConstantPool.CP_STRING, value);
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.