bug-classpath
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug classpath/22745] CharBuffer.wrap(CharSequence, int, int) takes star


From: gcc-bugzilla at gcc dot gnu dot org
Subject: [Bug classpath/22745] CharBuffer.wrap(CharSequence, int, int) takes startOffset and endOffset, not offset and length
Date: 16 Oct 2005 01:26:57 -0000

The parameters for the wrap methods in CharBuffer are inconsistent in Sun's
java, but the CharBuffer.wrap method that takes a CharBuffer and two ints
should interpret the two ints as a start and end offset, and not a offset and
length (which is how Claspath does interpret them). This is different from the
CharBuffer.wrap that takes a char array, which should interpret the two ints as
offset and length (which Classpath does)


------- Comment #1 from from-classpath at savannah dot gnu dot org  2004-05-27 
06:27 -------
Fix commited to CVS. It will be fixed in 0.10 release.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=22745





reply via email to

[Prev in Thread] Current Thread [Next in Thread]