@@ -859,11 +859,7 @@ public Void visitErroneous(ErroneousTree node, Void p) {
859
859
+ expectedValues , values , expectedValues );
860
860
}
861
861
862
- /*
863
- * The following tests do not work just yet with nb-javac nor javac,
864
- * they need further investigation, see CR: 7167356
865
- */
866
-
862
+ @ Test
867
863
void testPositionBrokenSource126732a () throws IOException {
868
864
String [] commands = new String []{
869
865
"return Runnable()" ,
@@ -903,6 +899,7 @@ void testPositionBrokenSource126732a() throws IOException {
903
899
}
904
900
}
905
901
902
+ @ Test
906
903
void testPositionBrokenSource126732b () throws IOException {
907
904
String [] commands = new String []{
908
905
"break" ,
@@ -944,6 +941,7 @@ void testPositionBrokenSource126732b() throws IOException {
944
941
}
945
942
}
946
943
944
+ @ Test
947
945
void testStartPositionEnumConstantInit () throws IOException {
948
946
949
947
String code = "package t; enum Test { AAA; }" ;
@@ -957,7 +955,7 @@ void testStartPositionEnumConstantInit() throws IOException {
957
955
int start = (int ) t .getSourcePositions ().getStartPosition (cut ,
958
956
enumAAA .getInitializer ());
959
957
960
- assertEquals ("testStartPositionEnumConstantInit" , - 1 , start );
958
+ assertEquals ("testStartPositionEnumConstantInit" , 23 , start );
961
959
}
962
960
963
961
@ Test
0 commit comments