summaryrefslogtreecommitdiff
path: root/libjava/testsuite/libjava.lang/G19990304_01.java
blob: f937089e1c467e869e7b3ff969c1bd18bddba7ff (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
public class G19990304_01
{
  public static void main (String[] args)
  {
    Object[] arrayObj = new String[3];
    String[] arrayStr = new String[3];
    try
      {
	System.out.println ("pass 1");
	arrayObj[0] = arrayStr;
      }
    catch (RuntimeException e)
      {
	System.out.println ("RuntimeException");
      }
    System.out.println ("pass 2");
  }
}