-
Notifications
You must be signed in to change notification settings - Fork 0
/
forest_jacks.log
39846 lines (30861 loc) · 861 KB
/
forest_jacks.log
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
Testing forest
Working directory is /Users/leonevers/Dropbox/Coding/forest
compile = /Users/leonevers/Dropbox/Coding/forest/javac ...
run = /Users/leonevers/Dropbox/Coding/forest/java ...
leonevers/Dropbox/Coding/forest/test/jacks/tests/gcj
leonevers/Dropbox/Coding/forest/test/jacks/tests/jikes
leonevers/Dropbox/Coding/forest/test/jacks/tests/jikes/jls/blocks-and-statements/labeled-statements
leonevers/Dropbox/Coding/forest/test/jacks/tests/jikes/jls/blocks-and-statements/try-statement
leonevers/Dropbox/Coding/forest/test/jacks/tests/jikes/jls/blocks-and-statements/unreachable-statements
leonevers/Dropbox/Coding/forest/test/jacks/tests/jikes/jls/classes/constructor-declarations/constructor-body/explicit-constructor-invocations
leonevers/Dropbox/Coding/forest/test/jacks/tests/jikes/jls/classes/field-declarations/initialization-of-fields
leonevers/Dropbox/Coding/forest/test/jacks/tests/jikes/jls/classes/method-declarations/method-body
leonevers/Dropbox/Coding/forest/test/jacks/tests/jikes/jls/interfaces/interface-members
leonevers/Dropbox/Coding/forest/test/jacks/tests/jikes/jls/lexical-structure/literals/character-literals
leonevers/Dropbox/Coding/forest/test/jacks/tests/jikes/jls/lexical-structure/unicode
leonevers/Dropbox/Coding/forest/test/jacks/tests/jikes/jls/packages/import-declarations/type-import-on-demand-declaration
leonevers/Dropbox/Coding/forest/test/jacks/tests/jikes/non-jls/effective-java
leonevers/Dropbox/Coding/forest/test/jacks/tests/jls/arrays/array-initializers
==== 10.6-type-2 expressions in array initializer must be
assignment compatible with array type FAILED
==== Contents of test case:
empty_main T106t2 {
int[] ia = { 1L };
}
---- Result was:
PASS
---- Result should have been:
FAIL
==== 10.6-type-2 FAILED
leonevers/Dropbox/Coding/forest/test/jacks/tests/jls/binary-compatibility/form-of-binary
==== 13.1-constructor-1 Constructors in a non-private non-static
nested class have an additional first parameter in the binary, for
the enclosing class FAILED
==== Contents of test case:
empty_class T131c1a {
class Inner {}
}
delete T131c1a.java
compile -classpath . [saveas T131c1b.java {
class T131c1b {
Object o = new T131c1a().new Inner();
}
}]
---- Result was:
FAIL
---- Result should have been:
PASS
==== 13.1-constructor-1 FAILED
==== 13.1-covariance-1 Class files may have more than one method
with the same parameter types but different return types. In
particular, legal .class files compiled with gj (generic java) or the
JSR14 beta compiler (the prequel to the expected JDK 1.5) allow
covariance in return types, and do so by compiling synthetic bridge
methods. Here, we check that the compiler is able to gracefully handle
covariance when loading a .class file, even though this is normally
a binary incompatible change. FAILED
==== Contents of test case:
compile [saveas T131co1a.java {
class T131co1a {
T131co1b m() { return null; }
}
class T131co1b extends T131co1a {
T131co1b m() { return null; }
}
class T131co1c extends T131co1b {
{ m(); }
}
}]
delete T131co1a.java
compile -classpath . [saveas T131co1a.java {
class T131co1a {
T131co1a m() { return null; } // change return type to a instead of b
}
// class T131co1b extends T131co1a {
// T131co1b m() { return null; } // now covariant!
// if this class were uncommented and compiled by gj, it would also have
// /*synthetic*/ T131co1a m() { return /*T131co1b*/m(); }
// }
class T131co1c extends T131co1b {
{ m(); }
}
}]
---- Result was:
FAIL
---- Result should have been:
PASS
==== 13.1-covariance-1 FAILED
==== 13.1-covariance-2 Class files may have more than one method
with the same parameter types but different return types. In
particular, legal .class files compiled with gj (generic java) or the
JSR14 beta compiler (the prequel to the expected JDK 1.5) allow
covariance in return types, and do so by compiling synthetic bridge
methods. Here, we check that the compiler is able to gracefully handle
covariance when loading a .class file, even though this is normally
a binary incompatible change. FAILED
==== Contents of test case:
compile [saveas T131co2a.java {
class T131co2a {
T131co2b[] m() { return null; }
}
class T131co2b extends T131co2a {
T131co2b[] m() { return null; }
}
class T131co2c extends T131co2b {
{ m(); }
}
}]
delete T131co2a.java
compile -classpath . [saveas T131co2a.java {
class T131co2a {
T131co2a[] m() { return null; } // change return type to a[] instead of b[]
}
// class T131co2b extends T131co2a {
// T131co2b[] m() { return null; } // now covariant!
// if this class were uncommented and compiled by gj, it would also have
// /*synthetic*/ T131co2a[] m() { return /*T131co2b*/m(); }
// }
class T131co2c extends T131co2b {
{ m(); }
}
}]
---- Result was:
FAIL
---- Result should have been:
PASS
==== 13.1-covariance-2 FAILED
==== 13.1-covariance-3 Class files may have more than one method
with the same parameter types but different return types. In
particular, legal .class files compiled with gj (generic java) or the
JSR14 beta compiler (the prequel to the expected JDK 1.5) allow
covariance in return types, and do so by compiling synthetic bridge
methods. Here, we check that the compiler is able to gracefully handle
covariance when loading a .class file, even though this is normally
a binary incompatible change. FAILED
==== Contents of test case:
compile [saveas T131co3a.java {
interface T131co3a {
T131co3b m();
}
interface T131co3b extends T131co3a {
T131co3b m();
}
abstract class T131co3c implements T131co3b {
{ m(); }
}
}]
delete T131co3a.java
compile -classpath . [saveas T131co3a.java {
interface T131co3a {
T131co3a m(); // change return type to a instead of b
}
// interface T131co3b extends T131co3a {
// T131co3b m(); // now covariant!
// }
abstract class T131co3c implements T131co3b {
// if b were uncommented and compiled by gj, this class would also have
// /*synthetic*/ T131co3a m() { return /*T131co3b*/m(); }
// Note that calling a.m() may fail when this class is not compiled by
// gj, as the bridge method is missing; but that is a different problem.
{ m(); }
}
}]
---- Result was:
FAIL
---- Result should have been:
PASS
==== 13.1-covariance-3 FAILED
leonevers/Dropbox/Coding/forest/test/jacks/tests/jls/blocks-and-statements/break-statement
==== 14.14-plain-1 plain break must occur in a loop
statement or switch FAILED
==== Contents of test case:
empty_main T1414p1 {
break;
}
---- Result was:
PASS
---- Result should have been:
FAIL
==== 14.14-plain-1 FAILED
==== 14.14-plain-9 plain break must occur in a loop
statement or switch FAILED
==== Contents of test case:
empty_main T1414p9 {
a: break;
}
---- Result was:
PASS
---- Result should have been:
FAIL
==== 14.14-plain-9 FAILED
leonevers/Dropbox/Coding/forest/test/jacks/tests/jls/blocks-and-statements/continue-statement
==== 14.15-plain-1 continue must occur in a loop statement FAILED
==== Contents of test case:
empty_main T1415p1 {
continue;
}
---- Result was:
PASS
---- Result should have been:
FAIL
==== 14.15-plain-1 FAILED
==== 14.15-plain-8 continue must occur in a loop statement FAILED
==== Contents of test case:
empty_main T1415p8 {
switch (args.length) {
case 0: continue;
}
}
---- Result was:
PASS
---- Result should have been:
FAIL
==== 14.15-plain-8 FAILED
==== 14.15-label-1 A label targeted by continue
must have a loop as its statment FAILED
==== Contents of test case:
empty_main T1415l1 {
a: {
for (int i=0; i<10; ++i)
continue a;
}
}
---- Result was:
PASS
---- Result should have been:
FAIL
==== 14.15-label-1 FAILED
==== 14.15-label-2 A label targeted by continue
must have a loop as its statment FAILED
==== Contents of test case:
empty_main T1415l2 {
a: b: for (int i=0; i<10; ++i)
continue a;
}
---- Result was:
PASS
---- Result should have been:
FAIL
==== 14.15-label-2 FAILED
==== 14.15-label-4 continue must occur in a loop statement FAILED
==== Contents of test case:
empty_main T1415l4 {
a: continue a;
}
---- Result was:
PASS
---- Result should have been:
FAIL
==== 14.15-label-4 FAILED
==== 14.15-label-11 continue must occur in a loop statement FAILED
==== Contents of test case:
empty_main T1415l11 {
a: switch (args.length) {
case 0: continue a;
}
}
---- Result was:
PASS
---- Result should have been:
FAIL
==== 14.15-label-11 FAILED
leonevers/Dropbox/Coding/forest/test/jacks/tests/jls/blocks-and-statements/if-statement
==== 14.9-invalid-syntax-2 Expression must be of type boolean FAILED
==== Contents of test case:
empty_main T149is2 {
if (0)
;
}
---- Result was:
PASS
---- Result should have been:
FAIL
==== 14.9-invalid-syntax-2 FAILED
==== 14.9-expression-evaluation-3 non-constant expression FAILED
==== Contents of test case:
empty_main T149ee3 {
final boolean aconst = false;
boolean anonconst = true;
if (aconst == anonconst)
;
}
---- Result was:
FAIL
---- Result should have been:
PASS
==== 14.9-expression-evaluation-3 FAILED
==== 14.9-expression-evaluation-5 non-constant expression FAILED
==== Contents of test case:
empty_main T149ee5 {
final byte aconst = 0;
byte anonconst = 1;
if (anonconst == aconst)
;
}
---- Result was:
FAIL
---- Result should have been:
PASS
==== 14.9-expression-evaluation-5 FAILED
==== 14.9-expression-evaluation-7 non-constant expression FAILED
==== Contents of test case:
empty_main T149ee7 {
final short aconst = 0;
short anonconst = 1;
if (anonconst == aconst)
;
}
---- Result was:
FAIL
---- Result should have been:
PASS
==== 14.9-expression-evaluation-7 FAILED
==== 14.9-expression-evaluation-9 non-constant expression FAILED
==== Contents of test case:
empty_main T149ee9 {
final char aconst = 0;
char anonconst = 1;
if (anonconst == aconst)
;
}
---- Result was:
FAIL
---- Result should have been:
PASS
==== 14.9-expression-evaluation-9 FAILED
==== 14.9-expression-evaluation-11 non-constant expression FAILED
==== Contents of test case:
empty_main T149ee11 {
final int aconst = 0;
int anonconst = 1;
if (anonconst == aconst)
;
}
---- Result was:
FAIL
---- Result should have been:
PASS
==== 14.9-expression-evaluation-11 FAILED
==== 14.9-expression-evaluation-13 non-constant expression FAILED
==== Contents of test case:
empty_main T149ee13 {
final long aconst = 0L;
long anonconst = 1L;
if (anonconst == aconst)
;
}
---- Result was:
FAIL
---- Result should have been:
PASS
==== 14.9-expression-evaluation-13 FAILED
==== 14.9-expression-evaluation-15 non-constant expression FAILED
==== Contents of test case:
empty_main T149ee15 {
final float aconst = 0F;
float anonconst = 1F;
if (anonconst == aconst)
;
}
---- Result was:
FAIL
---- Result should have been:
PASS
==== 14.9-expression-evaluation-15 FAILED
==== 14.9-expression-evaluation-17 non-constant expression FAILED
==== Contents of test case:
empty_main T149ee17 {
final double aconst = 0D;
double anonconst = 1D;
if (anonconst == aconst)
;
}
---- Result was:
FAIL
---- Result should have been:
PASS
==== 14.9-expression-evaluation-17 FAILED
==== 14.9-expression-evaluation-19 non-constant expression FAILED
==== Contents of test case:
empty_main T149ee19 {
final String aconst = "hi";
String anonconst = "there";
if (anonconst == aconst)
;
}
---- Result was:
FAIL
---- Result should have been:
PASS
==== 14.9-expression-evaluation-19 FAILED
leonevers/Dropbox/Coding/forest/test/jacks/tests/jls/blocks-and-statements/labeled-statements
==== 14.7-shadow-1 Labels cannot shadow another label in the
same enclosing method, constructor, or initializer FAILED
==== Contents of test case:
empty_main T147shadow1 {
int i;
test: {
test: i = 1;
}
}
---- Result was:
PASS
---- Result should have been:
FAIL
==== 14.7-shadow-1 FAILED
==== 14.7-shadow-2 Labels cannot shadow another label in the
same enclosing method, constructor, or initializer FAILED
==== Contents of test case:
empty_main T147shadow2 {
int i;
test: test: i = 1;
}
---- Result was:
PASS
---- Result should have been:
FAIL
==== 14.7-shadow-2 FAILED
==== 14.7-shadow-3 Labels cannot shadow another label in the same
immediately enclosing method, constructor, or initializer. Here, the
two labels are in different immediately enclosing methods. FAILED
==== Contents of test case:
empty_main T147shadow3 {
test: new Object() {
void foo() {
int i;
test: i = 1;
}
};
}
---- Result was:
FAIL
---- Result should have been:
PASS
==== 14.7-shadow-3 FAILED
==== 14.7-same-2 Labels can share same identifier as class FAILED
==== Contents of test case:
empty_main T147same2 {
int i;
T147same2: i = 1;
new T147same2();
}
---- Result was:
FAIL
---- Result should have been:
PASS
==== 14.7-same-2 FAILED
==== 14.7-same-3 Labels can share same identifier as interface FAILED
==== Contents of test case:
empty_main T147same3 {
int i;
Cloneable: i = 1;
new Cloneable() {};
}
---- Result was:
FAIL
---- Result should have been:
PASS
==== 14.7-same-3 FAILED
==== 14.7-ident-6 Labels must be identifiers, including unicode FAILED
==== Contents of test case:
empty_main T147ident6 {
int i;
\u0061\u003a break a;
b: break \u0062;
}
---- Result was:
FAIL
---- Result should have been:
PASS
==== 14.7-ident-6 FAILED
leonevers/Dropbox/Coding/forest/test/jacks/tests/jls/blocks-and-statements/local-class-declarations
==== 14.3-1 tests local class declarations in both static and
instance methods FAILED
==== Contents of test case:
empty_class TestLCD {
static Object static_method() {
abstract class Foo { }
return new Foo() { };
}
Object instance_method() {
abstract class Foo { }
return new Foo() { };
}
}
---- Result was:
FAIL
---- Result should have been:
PASS
==== 14.3-1 FAILED
==== 14.3-scope-3 The scope of a local class continues to the end
of the current block FAILED
==== Contents of test case:
empty_main T143s3 {
class Local {
{ new Local() {}; }
}
new Local();
{
new Local();
}
}
---- Result was:
FAIL
---- Result should have been:
PASS
==== 14.3-scope-3 FAILED
==== 14.3-scope-6 The scope of a local class continues to the end
of the current block, but may be shadowed in other classes FAILED
==== Contents of test case:
empty_main T143s6 {
class Local {}
{
new Object() {
class Local {}
};
}
new Object() {
class Local {}
};
}
---- Result was:
FAIL
---- Result should have been:
PASS
==== 14.3-scope-6 FAILED
==== 14.3-scope-7 The scope of a local class continues to the end
of the current block FAILED
==== Contents of test case:
empty_main T143s7 {
{
class Local {}
}
class Local {}
}
---- Result was:
FAIL
---- Result should have been:
PASS
==== 14.3-scope-7 FAILED
==== 14.3-scope-8 Example of scoping, minus failures FAILED
==== Contents of test case:
empty_class T143s8 {
class Cyclic {}
void foo() {
new Cyclic(); // create a T143s8.Cyclic
{
class Local{};
{
class AnotherLocal {
void bar() {
class Local {}; // ok
}
}
}
}
class Local{}; // ok, not in scope of prior Local
}
}
---- Result was:
FAIL
---- Result should have been:
PASS
==== 14.3-scope-8 FAILED
==== 14.3-scope-9 The scope of a local class starts at its
declaration, not before FAILED
==== Contents of test case:
empty_class T143s9 {
class Local {
static final int i = 1;
}
void m(int j) {
switch (j) {
case 0:
case (1 == Local.i ? 1 : 0):
}
class Local {
static final int i = 2;
}
switch (j) {
case 0:
case (2 == Local.i ? 1 : 0):
}
}
}
---- Result was:
FAIL
---- Result should have been:
PASS
==== 14.3-scope-9 FAILED
==== 14.3-scope-11 While not well-specified, the scope of a local
class in a switch statement is the immediately enclosing switch
block statement (and not the entire switch) FAILED
==== Contents of test case:
empty_class T143s11 {
void m(int i) {
switch (i) {
case 0:
class Local {}
break;
case 1:
class Local {}
}
}
}
---- Result was:
FAIL
---- Result should have been:
PASS
==== 14.3-scope-11 FAILED
leonevers/Dropbox/Coding/forest/test/jacks/tests/jls/blocks-and-statements/local-variable-declaration-statements/scope
==== 14.4.2-invalid-scope-1 A local variable cannot be redeclared FAILED
==== Contents of test case:
empty_main T1442is1 {
int i;
int i;
}
---- Result was:
PASS
---- Result should have been:
FAIL
==== 14.4.2-invalid-scope-1 FAILED
==== 14.4.2-invalid-scope-2 A local variable cannot be redeclared FAILED
==== Contents of test case:
empty_main T1442is2 {
int i;
for (int i; ; );
}
---- Result was:
PASS
---- Result should have been:
FAIL
==== 14.4.2-invalid-scope-2 FAILED
==== 14.4.2-invalid-scope-3 A local variable cannot be redeclared FAILED
==== Contents of test case:
empty_main T1442is3 {
int i;
try {
throw new Exception();
} catch (Exception i) {
}
}
---- Result was:
PASS
---- Result should have been:
FAIL
==== 14.4.2-invalid-scope-3 FAILED
==== 14.4.2-invalid-scope-4 A local variable cannot be redeclared FAILED
==== Contents of test case:
empty_class T1442is4 {
void foo(int i) {
int i;
}
}
---- Result was:
PASS
---- Result should have been:
FAIL
==== 14.4.2-invalid-scope-4 FAILED
==== 14.4.2-invalid-scope-5 A local variable cannot be redeclared FAILED
==== Contents of test case:
empty_main T1442is5 {
for (int i; ; ) {
int i;
}
}
---- Result was:
PASS
---- Result should have been:
FAIL
==== 14.4.2-invalid-scope-5 FAILED
==== 14.4.2-invalid-scope-6 A local variable cannot be redeclared FAILED
==== Contents of test case:
empty_main T1442is6 {
try {
throw new Exception();
} catch (Exception i) {
int i;
}
}
---- Result was:
PASS
---- Result should have been:
FAIL
==== 14.4.2-invalid-scope-6 FAILED
==== 14.4.2-shadow-4 A local variable may be shadowed by a member FAILED
==== Contents of test case:
empty_main T1442s4 {
Object i;
new Object() {
int i;
};
}
---- Result was:
FAIL
---- Result should have been:
PASS
==== 14.4.2-shadow-4 FAILED
==== 14.4.2-shadow-5 A local variable may be shadowed by a local FAILED
==== Contents of test case:
empty_main T1442s5 {
final Object i = null;
new Object() {
{
Object o = i;
int i;
i = 1;
}
};
}
---- Result was:
FAIL
---- Result should have been:
PASS
==== 14.4.2-shadow-5 FAILED
==== 14.4.2-shadow-6 A local variable may be shadowed by a local FAILED
==== Contents of test case:
empty_main T1442s6 {
final Object i = null;
new Object() {
{
Object o = i;
for (int i = 1; i < 1; );
o = i;
}
};
}
---- Result was:
FAIL
---- Result should have been:
PASS
==== 14.4.2-shadow-6 FAILED
==== 14.4.2-shadow-7 A local variable may be shadowed by a local FAILED
==== Contents of test case:
empty_main T1442s7 {
final int i = 1;
new Object() {
{
try {
int j = i;
throw new Exception();
} catch (Exception i) {
}
}
};
}
---- Result was:
FAIL
---- Result should have been:
PASS
==== 14.4.2-shadow-7 FAILED
==== 14.4.2-shadow-8 A local variable may be shadowed by a
parameter FAILED
==== Contents of test case:
empty_main T1442s8 {
final Object i = null;
new Object() {
Object o = i;
void foo(int i) {
i = 1;
}
};
}
---- Result was:
FAIL
---- Result should have been:
PASS
==== 14.4.2-shadow-8 FAILED
==== 14.4.2-shadow-9 A local variable may be shadowed by an inherited
member FAILED
==== Contents of test case:
ok_pass_or_warn [empty_class T1442s9 {
void foo(final byte b) {
class One {
final int i = 1;
}
Object i;
class Two extends One {
{
switch (b) {
case 0:
case (i == 1) ? 1 : 0:
}
}
}
}
}]
---- Result was:
FAIL
---- Result should have been:
OK
==== 14.4.2-shadow-9 FAILED
leonevers/Dropbox/Coding/forest/test/jacks/tests/jls/blocks-and-statements/switch-statement
==== 14.10-invalid-type-1 Expression type must be char, byte, short, or int FAILED
==== Contents of test case:
switch_labels T1410it1 boolean