@@ -866,11 +866,7 @@ public Void visitErroneous(ErroneousTree node, Void p) {
866
866
+ expectedValues , values , expectedValues );
867
867
}
868
868
869
- /*
870
- * The following tests do not work just yet with nb-javac nor javac,
871
- * they need further investigation, see CR: 7167356
872
- */
873
-
869
+ @ Test
874
870
void testPositionBrokenSource126732a () throws IOException {
875
871
String [] commands = new String []{
876
872
"return Runnable()" ,
@@ -910,6 +906,7 @@ void testPositionBrokenSource126732a() throws IOException {
910
906
}
911
907
}
912
908
909
+ @ Test
913
910
void testPositionBrokenSource126732b () throws IOException {
914
911
String [] commands = new String []{
915
912
"break" ,
@@ -951,6 +948,7 @@ void testPositionBrokenSource126732b() throws IOException {
951
948
}
952
949
}
953
950
951
+ @ Test
954
952
void testStartPositionEnumConstantInit () throws IOException {
955
953
956
954
String code = "package t; enum Test { AAA; }" ;
@@ -964,7 +962,7 @@ void testStartPositionEnumConstantInit() throws IOException {
964
962
int start = (int ) t .getSourcePositions ().getStartPosition (cut ,
965
963
enumAAA .getInitializer ());
966
964
967
- assertEquals ("testStartPositionEnumConstantInit" , - 1 , start );
965
+ assertEquals ("testStartPositionEnumConstantInit" , 23 , start );
968
966
}
969
967
970
968
@ Test
0 commit comments