
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
21 lines
576 B
Java
21 lines
576 B
Java
public class PR35020
|
|
{
|
|
class inner
|
|
{
|
|
}
|
|
public static void main(String[] args)
|
|
{
|
|
System.out.println(inner.class.getSimpleName());
|
|
System.out.println(PR35020.class.getSimpleName());
|
|
System.out.println(Class.class.getSimpleName());
|
|
System.out.println((new int[7]).getClass().getSimpleName());
|
|
System.out.println((new Object[1][1][1][1][1][1][1][1]).getClass().getSimpleName());
|
|
System.out.println((new java.security.PrivilegedAction()
|
|
{
|
|
public Object run() {
|
|
return null;
|
|
}
|
|
}).getClass().getSimpleName());
|
|
}
|
|
}
|
|
|