gcc/libjava/testsuite/libjava.lang/bytearray.java
Andrew Haley 58bf803e6c bytearray.java: New file.
2005-04-06  Andrew Haley  <aph@redhat.com>

	* testsuite/libjava.lang/bytearray.java: New file.
	* testsuite/libjava.lang/bytearray.out: New file.
	* java/lang/ClassLoader.java (loadClassFromSig): Declare
	(loadClass): Use it.
	* java/lang/natClassLoader.cc (loadClassFromSig): New method.

From-SVN: r97756
2005-04-06 22:30:01 +00:00

11 lines
310 B
Java

public class bytearray
{
public static void main (String[] argv) throws Throwable {
Class c = Class.forName ("[Ljava.lang.String;");
c = Class.forName ("[B");
System.out.println (c);
c = ClassLoader.getSystemClassLoader().loadClass ("[[Ljava.lang.String;");
System.out.println (c);
}
}