natString.cc (intern): If string's data does not point to this String, make a fresh String that does.

* java/lang/natString.cc (intern):  If string's data does not point to
	this String, make a fresh String that does.

	* java/lang/natString.cc (unintern):  Replace by static function.
	* java/lang/String.java (unintern):  Remove method.

From-SVN: r40990
This commit is contained in:
Per Bothner 2001-04-01 14:54:10 -07:00 committed by Per Bothner
parent f44b63ae02
commit a3b63299e6
3 changed files with 17 additions and 7 deletions

View file

@ -347,6 +347,5 @@ public final class String implements Serializable, Comparable
private native void init (byte[] chars, int hibyte, int offset, int count);
private native void init (byte[] chars, int offset, int count, String enc)
throws UnsupportedEncodingException;
private static native void unintern (Object obj);
private static native void rehash ();
}