source:
trunk/src/gcc/libjava/testsuite/libjava.lang/G19990302_02.java@
141
| Last change on this file since 141 was 2, checked in by , 23 years ago | |
|---|---|
|
|
| File size: 444 bytes | |
| Line | |
|---|---|
| 1 | public 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.
