Skip to content

Commit 07fb4f9

Browse files
archiecobbsVicente Romero
authored and
Vicente Romero
committed
7167356: (javac) investigate failing tests in JavacParserTest
Reviewed-by: vromero
1 parent 3ac2bed commit 07fb4f9

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

test/langtools/tools/javac/parser/JavacParserTest.java

+4-6
Original file line numberDiff line numberDiff line change
@@ -866,11 +866,7 @@ public Void visitErroneous(ErroneousTree node, Void p) {
866866
+ expectedValues, values, expectedValues);
867867
}
868868

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
874870
void testPositionBrokenSource126732a() throws IOException {
875871
String[] commands = new String[]{
876872
"return Runnable()",
@@ -910,6 +906,7 @@ void testPositionBrokenSource126732a() throws IOException {
910906
}
911907
}
912908

909+
@Test
913910
void testPositionBrokenSource126732b() throws IOException {
914911
String[] commands = new String[]{
915912
"break",
@@ -951,6 +948,7 @@ void testPositionBrokenSource126732b() throws IOException {
951948
}
952949
}
953950

951+
@Test
954952
void testStartPositionEnumConstantInit() throws IOException {
955953

956954
String code = "package t; enum Test { AAA; }";
@@ -964,7 +962,7 @@ void testStartPositionEnumConstantInit() throws IOException {
964962
int start = (int) t.getSourcePositions().getStartPosition(cut,
965963
enumAAA.getInitializer());
966964

967-
assertEquals("testStartPositionEnumConstantInit", -1, start);
965+
assertEquals("testStartPositionEnumConstantInit", 23, start);
968966
}
969967

970968
@Test

0 commit comments

Comments
 (0)