natString.cc (unintern): Added `obj' argument.

* java/lang/natString.cc (unintern): Added `obj' argument.
	(intern): Register finalizer for string.
	* java/lang/String.java (unintern): Now static; added obj
	argument.

From-SVN: r33124
This commit is contained in:
Tom Tromey 2000-04-12 20:45:59 +00:00 committed by Tom Tromey
parent 07385c4994
commit 50b99cc8fe
3 changed files with 15 additions and 5 deletions

View file

@ -1,4 +1,4 @@
/* Copyright (C) 1998, 1999 Free Software Foundation
/* Copyright (C) 1998, 1999, 2000 Free Software Foundation
This file is part of libgcj.
@ -302,6 +302,6 @@ public final class String
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 native void unintern ();
private static native void unintern (Object obj);
private static native void rehash ();
}