File tree 3 files changed +1
-28
lines changed
src/test/resources/org/aspectj/systemtest/ajc1921
3 files changed +1
-28
lines changed Original file line number Diff line number Diff line change @@ -31,14 +31,6 @@ aspect SwitchPatternPreview3Aspect {
31
31
}
32
32
33
33
Object around (Integer i ): execution (* doSomethingWithInteger(* )) && args (i) {
34
- // This used to work in preview 4 (Java 20), but fails during runtime with
35
- // java.lang.IndexOutOfBoundsException: Index 4 out of bounds for length 4
36
- // in ECJ 3.36.0-SNAPSHOT with Java 21.
37
- // See:
38
- // https://github.com/eclipse-jdt/eclipse.jdt.core/issues/1466.
39
- //
40
- // TODO: Activate when https://github.com/eclipse-jdt/eclipse.jdt.core/issues/1466 is fixed.
41
- /*
42
34
System . out. println(
43
35
switch (i) {
44
36
case null - > " value unavailable: " + i;
@@ -47,7 +39,6 @@ aspect SwitchPatternPreview3Aspect {
47
39
default - > " other integer: " + i;
48
40
}
49
41
);
50
- */
51
42
return proceed (i);
52
43
}
53
44
}
Original file line number Diff line number Diff line change @@ -29,15 +29,12 @@ public static void main(String[] args) {
29
29
// constantLabelMustAppearBeforePattern(Integer.valueOf(123));
30
30
// constantLabelMustAppearBeforePattern(null);
31
31
32
- // TODO: Activate when https://github.com/eclipse-jdt/eclipse.jdt.core/issues/1466 is fixed.
33
- /*
34
32
constantLabelMustAppearBeforePatternInteger (-1 );
35
33
constantLabelMustAppearBeforePatternInteger (0 );
36
34
constantLabelMustAppearBeforePatternInteger (42 );
37
35
constantLabelMustAppearBeforePatternInteger (-99 );
38
36
constantLabelMustAppearBeforePatternInteger (Integer .valueOf (123 ));
39
37
constantLabelMustAppearBeforePatternInteger (null );
40
- */
41
38
42
39
System .out .println (testGenericSealedExhaustive (new E <Integer >()));
43
40
}
@@ -105,15 +102,6 @@ static String constantLabelMustAppearBeforePattern(Object o) {
105
102
}
106
103
*/
107
104
108
- /**
109
- * This used to work in preview 4 (Java 20), but fails during runtime with
110
- * java.lang.IndexOutOfBoundsException: Index 4 out of bounds for length 4
111
- * in ECJ 3.36.0-SNAPSHOT with Java 21.
112
- * See:
113
- * https://github.com/eclipse-jdt/eclipse.jdt.core/issues/1466.
114
- *
115
- * TODO: Activate when https://github.com/eclipse-jdt/eclipse.jdt.core/issues/1466 is fixed.
116
- */
117
105
static String constantLabelMustAppearBeforePatternInteger (Integer i ) {
118
106
switch (i ) {
119
107
case null -> System .out .println ("value unavailable: " + i );
Original file line number Diff line number Diff line change 26
26
<ajc-test dir =" features1921/java21" vm =" 21" title =" switch pattern matching preview 4 java" >
27
27
<compile files =" SwitchPatternPreview4OK.java" options =" -21" />
28
28
<run class =" SwitchPatternPreview4OK" vmargs =" " >
29
- <message ></ message >
29
+ <message / >
30
30
<stdout >
31
31
<line text =" null" />
32
32
<line text =" int 123" />
40
40
<line text =" Sealed sub-class A" />
41
41
<line text =" Sealed sub-class B" />
42
42
<line text =" Sealed sub-record C" />
43
- <!-- TODO: Activate when https://github.com/eclipse-jdt/eclipse.jdt.core/issues/1466 is fixed. -->
44
- <!--
45
43
<line text =" absolute value 1: -1" />
46
44
<line text =" other integer: 0" />
47
45
<line text =" positive integer: 42" />
48
46
<line text =" other integer: -99" />
49
47
<line text =" positive integer: 123" />
50
48
<line text =" value unavailable: null" />
51
- -->
52
49
<line text =" 42" />
53
50
</stdout >
54
51
</run >
79
76
<line text =" Sealed sub-class A" />
80
77
<line text =" Sealed sub-class B" />
81
78
<line text =" Sealed sub-record C" />
82
- <!-- TODO: Activate when https://github.com/eclipse-jdt/eclipse.jdt.core/issues/1466 is fixed. -->
83
- <!--
84
79
<line text =" absolute value 1: -1" />
85
80
<line text =" other integer: 0" />
86
81
<line text =" positive integer: 42" />
87
82
<line text =" other integer: -99" />
88
83
<line text =" positive integer: 123" />
89
84
<line text =" value unavailable: null" />
90
- -->
91
85
</stdout >
92
86
</run >
93
87
</ajc-test >
You can’t perform that action at this time.
0 commit comments