You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by "Alex Blewitt (JIRA)" <ji...@apache.org> on 2006/10/28 01:59:19 UTC
[jira] Commented: (HARMONY-1994) [classlib][pack200] Can now write
constant fields in interfaces :-)
[ http://issues.apache.org/jira/browse/HARMONY-1994?page=comments#action_12445304 ]
Alex Blewitt commented on HARMONY-1994:
---------------------------------------
See -- it works :-)
apple[tmp] javap -v test.Test
Compiled from "Test.java"
public interface test.Test extends java.io.Serializable,java.lang.Cloneable
SourceFile: "Test.java"
minor version: 0
major version: 49
Constant pool:
const #1 = Asciz SourceFile;
const #2 = Asciz Test.java;
const #3 = class #4; // test/Test
const #4 = Asciz test/Test;
const #5 = class #6; // java/lang/Object
const #6 = Asciz java/lang/Object;
const #7 = class #8; // java/io/Serializable
const #8 = Asciz java/io/Serializable;
const #9 = class #10; // java/lang/Cloneable
const #10 = Asciz java/lang/Cloneable;
const #11 = Asciz WOMBAT;
const #12 = Asciz I;
const #13 = Asciz ConstantValue;
const #14 = int 1;
{
public static final int WOMBAT;
Constant value: int 1
}
> [classlib][pack200] Can now write constant fields in interfaces :-)
> -------------------------------------------------------------------
>
> Key: HARMONY-1994
> URL: http://issues.apache.org/jira/browse/HARMONY-1994
> Project: Harmony
> Issue Type: Improvement
> Components: Classlib
> Reporter: Alex Blewitt
> Priority: Trivial
> Attachments: pack200-test.patch, pack200.patch
>
>
> Continued work on pack200 code. Refactored all inner classes (ConstantPoolEntry/ClassFileEntry) into separate bytecode package, wrote some tests (not fully complete). Updated segment parsing to build that, and we can now reconstitute interfaces that have integer hard-coded constants stored, as well as fields.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira