Harmony
  1. Harmony
  2. HARMONY-197

[classlib][luni] Java 5 enhancements for java.lang.Character

    Details

    • Type: Improvement Improvement
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Classlib
    • Labels:
      None
    • Estimated Complexity:
      Moderate

      Description

      This issue is for enhancements to the java.lang.Character class to uplift it to match the Java 5 specification. Changes include the following:

      • New constants
      • valueOf method for boxing - the size of the cache is somewhat arbitrary and can easily be adjusted
      • New Unicode code point methods
      • Test case for all new methods.

      The addition of the code point methods should enable the implementation of the code point methods in StringBuffer and StringBuilder. At least the knowledge gained will help .

      1. Character_java_5_patch.txt
        39 kB
        Nathan Beyer
      2. CharacterTest.java
        20 kB
        Nathan Beyer

        Activity

        Nathan Beyer created issue -
        Nathan Beyer made changes -
        Field Original Value New Value
        Attachment CharacterTest.java [ 12324139 ]
        Attachment Character_java_5_patch.txt [ 12324138 ]
        Hide
        Nathan Beyer added a comment -

        BTW: I ran the test cases against BEA's Java 5 Update 4 R26.0 JRE and Sun's Java 5 Update 5 JRE for reference.

        Show
        Nathan Beyer added a comment - BTW: I ran the test cases against BEA's Java 5 Update 4 R26.0 JRE and Sun's Java 5 Update 5 JRE for reference.
        Tim Ellison made changes -
        Assignee Tim Ellison [ tellison ]
        Tim Ellison made changes -
        Status Open [ 1 ] In Progress [ 3 ]
        Hide
        Tim Ellison added a comment -

        Thanks Nathan,

        Patch applied to LUNI module java.lang.Character at repo revision 386060.

        Please check that the patch was applied as you expected.

        Show
        Tim Ellison added a comment - Thanks Nathan, Patch applied to LUNI module java.lang.Character at repo revision 386060. Please check that the patch was applied as you expected.
        Tim Ellison made changes -
        Resolution Fixed [ 1 ]
        Status In Progress [ 3 ] Resolved [ 5 ]
        Hide
        Nathan Beyer added a comment -

        Looks good, thanks.

        Show
        Nathan Beyer added a comment - Looks good, thanks.
        Hide
        Tim Ellison added a comment -

        Verified by Nathan.

        Show
        Tim Ellison added a comment - Verified by Nathan.
        Tim Ellison made changes -
        Status Resolved [ 5 ] Closed [ 6 ]
        Transition Time In Source Status Execution Times Last Executer Last Execution Date
        Open Open In Progress In Progress
        1d 8h 1 Tim Ellison 15/Mar/06 20:07
        In Progress In Progress Resolved Resolved
        2m 31s 1 Tim Ellison 15/Mar/06 20:09
        Resolved Resolved Closed Closed
        21h 14m 1 Tim Ellison 16/Mar/06 17:24

          People

          • Assignee:
            Tim Ellison
            Reporter:
            Nathan Beyer
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development