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 19:45:41 UTC
[jira] Updated: (HARMONY-5571) [classlib][pack200] Deprecated
method attribute not being preserved
[ https://issues.apache.org/jira/browse/HARMONY-5571?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Andrew Cornwall updated HARMONY-5571:
-------------------------------------
Attachment: SimpleHelloWorld.jar
SimpleHelloWorld.pack
The test case is attached. It corresponds to the following Java source:
package org.apache.harmony.pack200.tests.andrew;
public class SimpleHelloWorld {
/**
* This is a debugging message to aid the developer in writing this
* class. If the property 'debug.pack200' is set, this will
* generate messages to stderr; otherwise, it will be silent.
*
* @param message
* @deprecated this may be removed from production code
*/
public static void debug(String message) {
if (System.getProperty("debug.pack200") != null) {
System.err.println(message);
}
}
}
> [classlib][pack200] Deprecated method attribute not being preserved
> -------------------------------------------------------------------
>
> Key: HARMONY-5571
> URL: https://issues.apache.org/jira/browse/HARMONY-5571
> Project: Harmony
> Issue Type: Bug
> Components: Classlib
> Environment: All Pack200
> Reporter: Andrew Cornwall
> Attachments: SimpleHelloWorld.jar, SimpleHelloWorld.pack
>
>
> Methods which have been marked deprecated do not have this attribute preserved when they are unpacked.
> A test method is attached. (It's simply the debug method from SegmentUtils.) When unpacked under Sun, the debug method has attributes_count = 2, the Code attribute and the Deprecated attribute:
> attribute Deprecated {
> attribute_name_index = #33 // "Deprecated"
> attribute_length = 0
> }
> When unpacked with Harmony, attributes_count = 1 and the Deprecated attribute is missing.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.