Bug 22646 - String.trim off by one on lead whitespace
Summary: String.trim off by one on lead whitespace
Status: RESOLVED FIXED
Alias: None
Product: classpath
Classification: Unclassified
Component: classpath (show other bugs)
Version: unspecified
: P3 normal
Target Milestone: ---
Assignee: Not yet assigned to anyone
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-07-24 19:15 UTC by from-classpath
Modified: 2005-07-23 22:54 UTC (History)
1 user (show)

See Also:
Host:
Target:
Build:
Known to work:
Known to fail:
Last reconfirmed:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description from-classpath 2002-07-24 19:15:23 UTC
Running with classpath 0.04 under ORP.

The following prints "lassname" instead of "classname"

class x {
    static public void main( String[] args )
    {
        String s = " classname";
        System.out.println( s.trim() );
    }
}
Comment 1 from-classpath 2002-07-26 00:11:20 UTC
Tip of CVS tree seems to fix this problem
Comment 2 from-classpath 2002-07-27 09:42:31 UTC
Verified that the fix that John Leuner checked in solves the bug.