Commit Graph

2 Commits

Author SHA1 Message Date
Andrew Haley 71292a0540 re PR libgcj/35020 (Class.getSimpleName() differs from Sun Java)
2008-05-28  Andrew Haley  <aph@redhat.com>

	* java/lang/Class.java (getSimpleName): Use getEnclosingClass().	
	* testsuite/libjava.lang/PR35020.java: New cases.
	* testsuite/libjava.lang/PR35020.out: New cases.

From-SVN: r136103
2008-05-28 15:12:47 +00:00
Andrew Haley cf38a465ec re PR libgcj/35020 (Class.getSimpleName() differs from Sun Java)
2008-05-22  Andrew Haley  <aph@redhat.com>

	PR libgcj/35020
	* java/lang/Class.java (getSimpleName): Replace incorrect use of
	String.lastIndexOf(String, int) with String.substring.
	* testsuite/libjava.lang/PR35020.java: New file.
	* testsuite/libjava.lang/PR35020.out: New file.

From-SVN: r135801
2008-05-23 13:04:18 +00:00