@@ -1029,37 +1029,34 @@ public void test010() throws CoreException {
10291029 );
10301030 assertProblems (
10311031 "Unexpected problems value" ,
1032- "----------\n " +
1033- "1. ERROR in /P2/src/p/Y.java (at line 3)\n " +
1034- " class C3a extends C1 { // error\n " +
1035- " ^^\n " +
1036- "Access restriction: The type \' X1.C1\' is not API (restriction on required project \' P1\' )\n " +
1037- "----------\n " +
1038- "2. ERROR in /P2/src/p/Y.java (at line 5)\n " +
1039- " super(0);\n " +
1040- " ^^^^^\n " +
1041- "Access restriction: The constructor \' X1.C1(int)\' is not API (restriction on required project \' P1\' )\n " +
1042- "----------\n " +
1043- "3. ERROR in /P2/src/p/Y.java (at line 6)\n " +
1044- " foo(); // error\n " +
1045- " ^^^\n " +
1046- "Access restriction: The method \' X1.C1.foo()\' is not API (restriction on required project \' P1\' )\n " +
1047- "----------\n " +
1048- "4. ERROR in /P2/src/p/Y.java (at line 11)\n " +
1049- " C1 m1 = // error\n " +
1050- " ^^\n " +
1051- "Access restriction: The type \' X1.C1\' is not API (restriction on required project \' P1\' )\n " +
1052- "----------\n " +
1053- "5. ERROR in /P2/src/p/Y.java (at line 12)\n " +
1054- " new C1(0); // error\n " +
1055- " ^^\n " +
1056- "Access restriction: The type \' X1.C1\' is not API (restriction on required project \' P1\' )\n " +
1057- "----------\n " +
1058- "6. ERROR in /P2/src/p/Y.java (at line 12)\n " +
1059- " new C1(0); // error\n " +
1060- " ^^\n " +
1061- "Access restriction: The constructor \' X1.C1(int)\' is not API (restriction on required project \' P1\' )\n " +
1062- "----------\n "
1032+ """
1033+ ----------
1034+ 1. ERROR in /P2/src/p/Y.java (at line 3)
1035+ class C3a extends C1 { // error
1036+ ^^
1037+ Access restriction: The type 'X1.C1' is not API (restriction on required project 'P1')
1038+ ----------
1039+ 2. ERROR in /P2/src/p/Y.java (at line 5)
1040+ super(0);
1041+ ^^^^^
1042+ Access restriction: The constructor 'X1.C1(int)' is not API (restriction on required project 'P1')
1043+ ----------
1044+ 3. ERROR in /P2/src/p/Y.java (at line 11)
1045+ C1 m1 = // error
1046+ ^^
1047+ Access restriction: The type 'X1.C1' is not API (restriction on required project 'P1')
1048+ ----------
1049+ 4. ERROR in /P2/src/p/Y.java (at line 12)
1050+ new C1(0); // error
1051+ ^^
1052+ Access restriction: The type 'X1.C1' is not API (restriction on required project 'P1')
1053+ ----------
1054+ 5. ERROR in /P2/src/p/Y.java (at line 12)
1055+ new C1(0); // error
1056+ ^^
1057+ Access restriction: The constructor 'X1.C1(int)' is not API (restriction on required project 'P1')
1058+ ----------
1059+ """
10631060 );
10641061 } finally {
10651062 if (x1 != null )
0 commit comments