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:
939 bytes
|
Line | |
---|
1 | /*-------------------------------------------------------------------------*/
|
---|
2 | /* File name : err1.java */
|
---|
3 | /* : */
|
---|
4 | /* Cause : When I make class-type Object. */
|
---|
5 | /* : */
|
---|
6 | /* Message : Internal compiler error: program jc1 got */
|
---|
7 | /* : fatal signal 11 */
|
---|
8 | /*-------------------------------------------------------------------------*/
|
---|
9 |
|
---|
10 | class A {
|
---|
11 | int counter = 100;
|
---|
12 | }
|
---|
13 |
|
---|
14 | public class err1 {
|
---|
15 | public static void main(String[] args) {
|
---|
16 | A array[] = new A[10]; //err
|
---|
17 | array[0] = new A();
|
---|
18 |
|
---|
19 | if ( array[0].counter == 100 ) {
|
---|
20 | System.out.println("OK");
|
---|
21 | } else {
|
---|
22 | System.out.println("NG:[100]-->[" +array[0].counter+ "]");
|
---|
23 | }
|
---|
24 | }
|
---|
25 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.