source: trunk/gcc/libjava/testsuite/libjava.lang/G19990302_02.java

Last change on this file was 2, checked in by bird, 22 years ago

Initial revision

  • Property cvs2svn:cvs-rev set to 1.1
  • Property svn:eol-style set to native
  • Property svn:executable set to *
File size: 444 bytes
Line 
1public class G19990302_02 {
2 public static void main(String args[]) {
3 try {
4 Object[] arrayObj = new String[3];
5 String[] arrayStr = new String[3];
6 System.out.println ("Pass 1");
7 arrayObj[0] = arrayStr; // String object <-- String array object
8 System.out.println ("Pass 2");
9 } catch (ArrayStoreException e) {
10 System.out.println ("ArrayStoreException");
11 }
12 System.out.println ("Pass 3");
13 }
14}
15
Note: See TracBrowser for help on using the repository browser.