You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@harmony.apache.org by "Nathan Beyer (JIRA)" <ji...@apache.org> on 2006/03/07 05:31:39 UTC

[jira] Created: (HARMONY-180) [classlib][luni] Java 5 enhancements for java.lang.Byte

[classlib][luni] Java 5 enhancements for java.lang.Byte
-------------------------------------------------------

         Key: HARMONY-180
         URL: http://issues.apache.org/jira/browse/HARMONY-180
     Project: Harmony
        Type: Improvement
  Components: Classlib  
    Reporter: Nathan Beyer


Enhancements for java.lang.Byte, test cases, javadoc and a little cleanup.

-- 
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


[jira] Updated: (HARMONY-180) [classlib][luni] Java 5 enhancements for java.lang.Byte

Posted by "Nathan Beyer (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/HARMONY-180?page=all ]

Nathan Beyer updated HARMONY-180:
---------------------------------

    Attachment: ByteTest.java
                Byte_java_5_patch.txt

'Byte_java_5_patch.txt' is a patch for java.lang.Byte to implement Java 5 enhancements. The most notable is the 'valueOf(byte)', which I've implemented with a simple array-based cache. I've also updated the other methods that used the 'Byte(byte)' constructor to use this method instead. I believe these new 'valueOf' methods in the primitive wrappers are intended to be utilized by the VM (compiler?) for auto-boxing, hence the caching to help resource consumption.

The 'BytesTest.java' is an initial swipe at the test case. Currently it only tests the new method. I'll try to flush it out more completely later.

> [classlib][luni] Java 5 enhancements for java.lang.Byte
> -------------------------------------------------------
>
>          Key: HARMONY-180
>          URL: http://issues.apache.org/jira/browse/HARMONY-180
>      Project: Harmony
>         Type: Improvement
>   Components: Classlib
>     Reporter: Nathan Beyer
>  Attachments: ByteTest.java, Byte_java_5_patch.txt
>
> Enhancements for java.lang.Byte, test cases, javadoc and a little cleanup.

-- 
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