junit.framework.ComparisonFailure

Unexpected problems. ----------- Expected ------------ ----------\n ----------\n ------------ but was ------------ ----------\n 1. ERROR in /Reconciler15/src/test/cheetah/NestedGenericsTest.java (at line 2)\n import java.util.*;\n ^^^^^^^^^\n The import java.util cannot be resolved\n ----------\n 2. ERROR in /Reconciler15/src/test/cheetah/NestedGenericsTest.java (at line 5)\n Map m = new NestedGenerics().map; \n ^^^\n Map cannot be resolved to a type\n ----------\n 3. ERROR in /Reconciler15/src/test/cheetah/NestedGenericsTest.java (at line 5)\n Map m = new NestedGenerics().map; \n ^^^\n map cannot be resolved or is not a field\n ----------\n 4. ERROR in /Reconciler15/src/test/cheetah/NestedGenericsTest.java (at line 6)\n Stack s2 = new NestedGenerics().stack2; \n ^^^^^\n Stack cannot be resolved to a type\n ----------\n 5. ERROR in /Reconciler15/src/test/cheetah/NestedGenericsTest.java (at line 6)\n Stack s2 = new NestedGenerics().stack2; \n ^^^^^^\n stack2 cannot be resolved or is not a field\n ----------\n 6. ERROR in /Reconciler15/src/test/cheetah/NestedGenericsTest.java (at line 7)\n Map m3 = new NestedGenerics().map3; \n ^^^\n Map cannot be resolved to a type\n ----------\n 7. ERROR in /Reconciler15/src/test/cheetah/NestedGenericsTest.java (at line 7)\n Map m3 = new NestedGenerics().map3; \n ^^^^\n map3 cannot be resolved or is not a field\n ----------\n --------- Difference is ---------- expected:<......> but was:<...1. ERROR in /Reconciler15/src/test/cheetah/NestedGenericsTest.java (at line 2)\n import java.util.*;\n ^^^^^^^^^\n The import java.util cannot be resolved\n ----------\n 2. ERROR in /Reconciler15/src/test/cheetah/NestedGenericsTest.java (at line 5)\n Map m = new NestedGenerics().map; \n ^^^\n Map cannot be resolved to a type\n ----------\n 3. ERROR in /Reconciler15/src/test/cheetah/NestedGenericsTest.java (at line 5)\n Map m = new NestedGenerics().map; \n ^^^\n map cannot be resolved or is not a field\n ----------\n 4. ERROR in /Reconciler15/src/test/cheetah/NestedGenericsTest.java (at line 6)\n Stack s2 = new NestedGenerics().stack2; \n ^^^^^\n Stack cannot be resolved to a type\n ----------\n 5. ERROR in /Reconciler15/src/test/cheetah/NestedGenericsTest.java (at line 6)\n Stack s2 = new NestedGenerics().stack2; \n ^^^^^^\n stack2 cannot be resolved or is not a field\n ----------\n 6. ERROR in /Reconciler15/src/test/cheetah/NestedGenericsTest.java (at line 7)\n Map m3 = new NestedGenerics().map3; \n ^^^\n Map cannot be resolved to a type\n ----------\n 7. ERROR in /Reconciler15/src/test/cheetah/NestedGenericsTest.java (at line 7)\n Map m3 = new NestedGenerics().map3; \n ^^^^\n map3 cannot be resolved or is not a field\n ...>

Samebug tips0

There are no available Samebug tips for this exception. If you know how to solve this issue, help other users by writing a short tip.

Don't give up yet. Paste your full stack trace to get a solution.

Solutions on the web809

  • via apache.org by Unknown author, 1 year ago
    ^^^^^^\n stack2 cannot be resolved or is not a field\n ----------\n 6. ERROR in /Reconciler15/src/test/cheetah/NestedGenericsTest.java (at line 7)\n Map m3 = new NestedGenerics().map3; \n ^^^\n Map cannot be resolved to a type\n ----------\n 7
  • via harmony-alerts by nomail@intel.com, 11 months ago
    ^^^^^^\n stack2 cannot be resolved or is not a field\n ----------\n 6. ERROR in /Reconciler15/src/test/cheetah/NestedGenericsTest.java (at line 7)\n Map m3 = new NestedGenerics().map3; \n ^^^\n Map cannot be resolved to a type\n ----------\n 7
  • expected:<[]Line 1: A message (N...> but was:<[io/console on JRuby shells out to stty for most operations ]Line 1: A message (N...>
  • Stack trace

    • junit.framework.ComparisonFailure: Unexpected problems. ----------- Expected ------------ ----------\n ----------\n ------------ but was ------------ ----------\n 1. ERROR in /Reconciler15/src/test/cheetah/NestedGenericsTest.java (at line 2)\n import java.util.*;\n ^^^^^^^^^\n The import java.util cannot be resolved\n ----------\n 2. ERROR in /Reconciler15/src/test/cheetah/NestedGenericsTest.java (at line 5)\n Map m = new NestedGenerics().map; \n ^^^\n Map cannot be resolved to a type\n ----------\n 3. ERROR in /Reconciler15/src/test/cheetah/NestedGenericsTest.java (at line 5)\n Map m = new NestedGenerics().map; \n ^^^\n map cannot be resolved or is not a field\n ----------\n 4. ERROR in /Reconciler15/src/test/cheetah/NestedGenericsTest.java (at line 6)\n Stack s2 = new NestedGenerics().stack2; \n ^^^^^\n Stack cannot be resolved to a type\n ----------\n 5. ERROR in /Reconciler15/src/test/cheetah/NestedGenericsTest.java (at line 6)\n Stack s2 = new NestedGenerics().stack2; \n ^^^^^^\n stack2 cannot be resolved or is not a field\n ----------\n 6. ERROR in /Reconciler15/src/test/cheetah/NestedGenericsTest.java (at line 7)\n Map m3 = new NestedGenerics().map3; \n ^^^\n Map cannot be resolved to a type\n ----------\n 7. ERROR in /Reconciler15/src/test/cheetah/NestedGenericsTest.java (at line 7)\n Map m3 = new NestedGenerics().map3; \n ^^^^\n map3 cannot be resolved or is not a field\n ----------\n --------- Difference is ---------- expected:&lt;......&gt; but was:&lt;...1. ERROR in /Reconciler15/src/test/cheetah/NestedGenericsTest.java (at line 2)\n import java.util.*;\n ^^^^^^^^^\n The import java.util cannot be resolved\n ----------\n 2. ERROR in /Reconciler15/src/test/cheetah/NestedGenericsTest.java (at line 5)\n Map m = new NestedGenerics().map; \n ^^^\n Map cannot be resolved to a type\n ----------\n 3. ERROR in /Reconciler15/src/test/cheetah/NestedGenericsTest.java (at line 5)\n Map m = new NestedGenerics().map; \n ^^^\n map cannot be resolved or is not a field\n ----------\n 4. ERROR in /Reconciler15/src/test/cheetah/NestedGenericsTest.java (at line 6)\n Stack s2 = new NestedGenerics().stack2; \n ^^^^^\n Stack cannot be resolved to a type\n ----------\n 5. ERROR in /Reconciler15/src/test/cheetah/NestedGenericsTest.java (at line 6)\n Stack s2 = new NestedGenerics().stack2; \n ^^^^^^\n stack2 cannot be resolved or is not a field\n ----------\n 6. ERROR in /Reconciler15/src/test/cheetah/NestedGenericsTest.java (at line 7)\n Map m3 = new NestedGenerics().map3; \n ^^^\n Map cannot be resolved to a type\n ----------\n 7. ERROR in /Reconciler15/src/test/cheetah/NestedGenericsTest.java (at line 7)\n Map m3 = new NestedGenerics().map3; \n ^^^^\n map3 cannot be resolved or is not a field\n ...&gt; at org.eclipse.jdt.core.tests.junit.extension.TestCase.assertStringEquals(TestCase.java:140) at org.eclipse.jdt.core.tests.junit.extension.TestCase.assertEquals(TestCase.java:114) at org.eclipse.jdt.core.tests.model.AbstractJavaModelTests.assertProblems(AbstractJavaModelTests.java:430) at org.eclipse.jdt.core.tests.model.ReconcilerTests.assertProblems(ReconcilerTests.java:101) at org.eclipse.jdt.core.tests.model.ReconcilerTests.testMethodWithError11(ReconcilerTests.java:1901) at java.lang.reflect.VMReflection.invokeMethod(VMReflection.java) at org.eclipse.jdt.core.tests.model.SuiteOfTestCases$Suite.runTest(SuiteOfTestCases.java:99) at org.eclipse.jdt.core.tests.model.SuiteOfTestCases$Suite.superRun(SuiteOfTestCases.java:83) at org.eclipse.jdt.core.tests.model.SuiteOfTestCases$1.protect(SuiteOfTestCases.java:71) at org.eclipse.jdt.core.tests.model.SuiteOfTestCases$Suite.run(SuiteOfTestCases.java:80) at org.eclipse.test.EclipseTestRunner.run(EclipseTestRunner.java:330) at org.eclipse.test.EclipseTestRunner.run(EclipseTestRunner.java:204) at org.eclipse.test.CoreTestApplication.runTests(CoreTestApplication.java:35) at org.eclipse.test.CoreTestApplication.run(CoreTestApplication.java:31) at org.eclipse.core.internal.runtime.PlatformActivator$1.run(PlatformActivator.java:78) at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:92) at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:68) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:396) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:177) at java.lang.reflect.VMReflection.invokeMethod(VMReflection.java) at org.eclipse.core.launcher.Main.invokeFramework(Main.java:336) at org.eclipse.core.launcher.Main.basicRun(Main.java:280) at org.eclipse.core.launcher.Main.run(Main.java:977) at org.eclipse.core.launcher.Main.main(Main.java:952) at java.lang.reflect.VMReflection.invokeMethod(VMReflection.java) at org.apache.harmony.vm.JarRunner.main(JarRunner.java:80)

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    You’re the first here who have seen this exception.