a2139e0c48
* lib/libjava.exp: Add "xfail-byte-output" and "xfail-source-output". Don't display expected and actual output for a failed output test. * libjava.lang/ArrayStore.java: New file. * libjava.lang/ArrayStore.out: New file. * libjava.lang/ArrayStore.xfail: New file. xfail-byte-output. * libjava.lang/ArrayStore2.java: New file. * libjava.lang/ArrayStore2.out: New file. * libjava.lang/ArrayStore2.xfail: New file. xfail-source-output. From-SVN: r49888
32 lines
445 B
Java
32 lines
445 B
Java
public class ArrayStore2
|
|
{
|
|
public static void main(String[] args)
|
|
{
|
|
new ArrayStore2().a(new Object[2], 3);
|
|
}
|
|
|
|
void a(Object[] oa, int i)
|
|
{
|
|
try
|
|
{
|
|
oa[index()] = obj();
|
|
}
|
|
catch (Exception x)
|
|
{
|
|
System.out.println (x.getClass().getName());
|
|
}
|
|
}
|
|
|
|
int index()
|
|
{
|
|
System.out.println ("index");
|
|
return 3;
|
|
}
|
|
|
|
Object obj()
|
|
{
|
|
System.out.println ("rhs");
|
|
return new Object();
|
|
}
|
|
}
|