Commit 261985c3 by Tom Tromey Committed by Tom Tromey

stringconst2.out: New file.

	* libjava.lang/stringconst2.out: New file.
	* libjava.lang/stringconst2.java: New file.

From-SVN: r34909
parent 5c7525ac
2000-07-07 Tom Tromey <tromey@cygnus.com>
* libjava.lang/stringconst2.out: New file.
* libjava.lang/stringconst2.java: New file.
2000-06-23 Tom Tromey <tromey@cygnus.com> 2000-06-23 Tom Tromey <tromey@cygnus.com>
For PR gcj/260: For PR gcj/260:
......
// Test to make sure a string constant is correctly initialized.
import java.lang.reflect.*;
public class stringconst2
{
public static final String q = "zardoz";
public static void main (String[] args)
{
try
{
Class k = Class.forName ("stringconst2");
Field f = k.getField ("q");
System.out.println (f.get (null));
}
catch (Throwable _)
{
}
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment