mirror of
https://github.com/openRuyi-Project/gcc.git
synced 2026-06-16 00:16:04 +00:00
Jumbo patch:
* Imported beans and serialization * Updated IA-64 port * Miscellaneous bug fixes From-SVN: r34028
This commit is contained in:
@@ -8,6 +8,8 @@ details. */
|
||||
|
||||
package java.lang;
|
||||
import java.io.UnsupportedEncodingException;
|
||||
import java.io.Serializable;
|
||||
import java.lang.Comparable;
|
||||
|
||||
/**
|
||||
* @author Per Bothner <bothner@cygnus.com>
|
||||
@@ -18,7 +20,7 @@ import java.io.UnsupportedEncodingException;
|
||||
* Status: Complete to 1.1, but see FIXMEs. Also see testsuite results.
|
||||
*/
|
||||
|
||||
public final class String
|
||||
public final class String implements Serializable, Comparable
|
||||
{
|
||||
private Object data;
|
||||
private int boffset; // Note this is a byte offset - don't use in Java code!
|
||||
@@ -172,6 +174,11 @@ public final class String
|
||||
|
||||
public native int compareTo (String anotherString);
|
||||
|
||||
public int compareTo (Object obj)
|
||||
{
|
||||
return compareTo ((String)obj);
|
||||
}
|
||||
|
||||
public native boolean regionMatches (int toffset,
|
||||
String other, int ooffset, int len);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user