Skip to content

Failed

org.eclipse.jdt.core.tests.compiler.regression.NullTypeAnnotationTest.testBug446217 - 1.8 (from org.eclipse.jdt.core.tests.compiler.regression.TestAll)

Failing for the past 3 builds (Since #7 )
Took 0.73 sec.

Error Message

testBug446217 - Javac found warning(s) but Eclipse did not find any.
----------- Expected ------------

------------ but was ------------
sol/Test.java:5: warning: auxiliary class Node in sol/FuncList.java should not be accessed from outside its own source file\n
   System.out.println(new Node<>("A", new Empty<>()));\n
                          ^\n
sol/Test.java:5: warning: auxiliary class Empty in sol/FuncList.java should not be accessed from outside its own source file\n
   System.out.println(new Node<>("A", new Empty<>()));\n
                                          ^\n
2 warnings\n

--------- Difference is ----------
 expected:<[]> but was:<[sol/Test.java:5: warning: auxiliary class Node in sol/FuncList.java should not be accessed from outside its own source file\n
   System.out.println(new Node<>("A", new Empty<>()));\n
                          ^\n
sol/Test.java:5: warning: auxiliary class Empty in sol/FuncList.java should not be accessed from outside its own source file\n
   System.out.println(new Node<>("A", new Empty<>()));\n
                                          ^\n
2 warnings\n
]>

Stacktrace

junit.framework.ComparisonFailure: testBug446217 - Javac found warning(s) but Eclipse did not find any.
----------- Expected ------------

------------ but was ------------
sol/Test.java:5: warning: auxiliary class Node in sol/FuncList.java should not be accessed from outside its own source file\n
		 System.out.println(new Node<>("A", new Empty<>()));\n
		                        ^\n
sol/Test.java:5: warning: auxiliary class Empty in sol/FuncList.java should not be accessed from outside its own source file\n
		 System.out.println(new Node<>("A", new Empty<>()));\n
		                                        ^\n
2 warnings\n

--------- Difference is ----------
 expected:<[]> but was:<[sol/Test.java:5: warning: auxiliary class Node in sol/FuncList.java should not be accessed from outside its own source file\n
		 System.out.println(new Node<>("A", new Empty<>()));\n
		                        ^\n
sol/Test.java:5: warning: auxiliary class Empty in sol/FuncList.java should not be accessed from outside its own source file\n
		 System.out.println(new Node<>("A", new Empty<>()));\n
		                                        ^\n
2 warnings\n
]>
	at org.eclipse.jdt.core.tests.junit.extension.TestCase.assertStringEquals(TestCase.java:260)
	at org.eclipse.jdt.core.tests.junit.extension.TestCase.assertEquals(TestCase.java:236)
	at org.eclipse.jdt.core.tests.compiler.regression.AbstractRegressionTest.runJavac(AbstractRegressionTest.java:2064)
	at org.eclipse.jdt.core.tests.compiler.regression.AbstractRegressionTest.runTest(AbstractRegressionTest.java:2814)
	at org.eclipse.jdt.core.tests.compiler.regression.AbstractRegressionTest.runTest(AbstractRegressionTest.java:2539)
	at org.eclipse.jdt.core.tests.compiler.regression.AbstractRegressionTest.runConformTest(AbstractRegressionTest.java:3028)
	at org.eclipse.jdt.core.tests.compiler.regression.AbstractNullAnnotationTest.runConformTestWithLibs(AbstractNullAnnotationTest.java:183)
	at org.eclipse.jdt.core.tests.compiler.regression.AbstractNullAnnotationTest.runConformTestWithLibs(AbstractNullAnnotationTest.java:165)
	at org.eclipse.jdt.core.tests.compiler.regression.NullTypeAnnotationTest.testBug446217(NullTypeAnnotationTest.java:8413)

Standard Output

org.eclipse.jdt.core.tests.compiler.regression.NullTypeAnnotationTest#testBug446217 - 1.8
sol/package-info.java [
@org.eclipse.jdt.annotation.NonNullByDefault
package sol;
]
sol/FuncList.java [

package sol;

interface FuncList<A> {}
	
@SuppressWarnings("unused")
final class Node<A> implements FuncList<A> {
	private final A a;
	private final FuncList<A> tail;
	
	Node(final A a, final FuncList<A> tail) {
		this.a = a;
		this.tail = tail;
	}
}

final class Empty<A> implements FuncList<A> {
	Empty() {}
}

]
sol/Test.java [
package sol;

public class Test {
	public static void main(final String[] args) {
		 System.out.println(new Node<>("A", new Empty<>()));
	}
}

]


Full results sent to /tmp/comptest/run.1514610271420/1.8.0_131_20171230_000432.txt

Standard Error

--- javac err: ---
sol/Test.java:5: warning: auxiliary class Node in sol/FuncList.java should not be accessed from outside its own source file
		 System.out.println(new Node<>("A", new Empty<>()));
		                        ^
sol/Test.java:5: warning: auxiliary class Empty in sol/FuncList.java should not be accessed from outside its own source file
		 System.out.println(new Node<>("A", new Empty<>()));
		                                        ^
2 warnings

----------------------------------------