[
https://issues.jboss.org/browse/JBIDE-13005?page=com.atlassian.jira.plugi...
]
Viacheslav Kabanovich edited comment on JBIDE-13005 at 11/12/12 2:27 PM:
-------------------------------------------------------------------------
The test fails with JDK 1.6, and passes with JDK 1.7.
That happens because implementation of classes implementing java.util.List changed in JDK
1.7. However, that does not mean that the issue is not actual with JDK 1.7. I have
modified the test in such a way that it failed in both JDK 1.7.
The method to fix is TypeMemberInfo.initializeParameters(). This method should init type
parameters not only in parentTypeInfo but in declaratedType.
was (Author: scabanovich):
The test fails with JDK 1.6, and passes with JDK 1.7.
That happens because implementation of classes implementing java.util.List changed in JDK
1.7. However, that does mean that the issue is not actual with JDK 1.7. I have modified
the test in such a way that it failed in both JDK 1.7.
The method to fix is TypeMemberInfo.initializeParameters(). This method should init type
parameters not only in parentTypeInfo but in declaratedType.
test failure in org.jboss.tools.common.el.core.test.CommonELAllTests
--------------------------------------------------------------------
Key: JBIDE-13005
URL:
https://issues.jboss.org/browse/JBIDE-13005
Project: Tools (JBoss Tools)
Issue Type: Bug
Components: common/jst/core
Affects Versions: 4.0.0.Beta2
Reporter: Nick Boldt
Assignee: Viacheslav Kabanovich
Fix For: 4.0.0.CR1
{code}
cd ~/jbosstools-base
mvn clean install -DtychoVersion=0.15.0 | tee log_tycho0150.txt
{code}
{code}
[INFO] org.jboss.tools.common.el.core.test ............... FAILURE [56.523s]
[INFO] org.jboss.tools.common.all.test.feature ........... SKIPPED
[INFO] base.site ......................................... SKIPPED
[ERROR] Failed to execute goal org.eclipse.tycho:tycho-surefire-plugin:0.15.0:test
(default-test) on project org.jboss.tools.common.el.core.test: There are test failures.
[ERROR]
[ERROR] Please refer to
/home/nboldt/eclipse/workspace-jboss/jbosstools-github/base/common/tests/org.jboss.tools.common.el.core.test/target/surefire-reports
for the individual test results.
{code}
{code}
-------------------------------------------------------------------------------
Test set: org.jboss.tools.common.el.core.test.CommonELAllTests
-------------------------------------------------------------------------------
Tests run: 48, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 51.136 sec <<<
FAILURE!
testTokenizerOnCorrectEL(org.jboss.tools.common.el.core.test.ELParserTest) Time elapsed:
0.028 sectestJBIDE3132(org.jboss.tools.common.el.core.test.ELParserTest) Time elapsed:
0.024 sectestElEmptyOperator(org.jboss.tools.common.el.core.test.ELParserTest) Time
elapsed: 0 sectestElLogicalNotOperators(org.jboss.tools.common.el.core.test.ELParserTest)
Time elapsed: 0
sectestElLogicalAndOperators(org.jboss.tools.common.el.core.test.ELParserTest) Time
elapsed: 0.001
sectestElLogicalOrOperators(org.jboss.tools.common.el.core.test.ELParserTest) Time
elapsed: 0.001
sectestElConditionalOperator(org.jboss.tools.common.el.core.test.ELParserTest) Time
elapsed: 0 sectestElRelationalOperator(org.jboss.tools.common.el.core.test.ELParserTest)
Time elapsed: 0.005
sectestElArithmeticOperators(org.jboss.tools.common.el.core.test.ELParserTest) Time
elapsed: 0.005
sectestElLiteralExpressions(org.jboss.tools.common.el.core.test.ELParserTest) Time
elapsed: 0.001
sectestElReferencesObjectProperties(org.jboss.tools.common.el.core.test.ELParserTest)
Time elapsed: 0.001 sectestElSimpleTypes(org.jboss.tools.common.el.core.test.ELParserTest)
Time elapsed: 0.001
sectestReservedWordAnd(org.jboss.tools.common.el.core.test.ELParserTest) Time elapsed:
0.003 sectestReservedWordOr(org.jboss.tools.common.el.core.test.ELParserTest) Time
elapsed: 0.001 sectestReservedWordNot(org.jboss.tools.common.el.core.test.ELParserTest)
Time elapsed: 0.001
sectestReservedWordEq(org.jboss.tools.common.el.core.test.ELParserTest) Time elapsed:
0.001 sectestReservedWordNe(org.jboss.tools.common.el.core.test.ELParserTest) Time
elapsed: 0 sectestReservedWordLt(org.jboss.tools.common.el.core.test.ELParserTest) Time
elapsed: 0.001 sectestReservedWordGt(org.jboss.tools.common.el.core.test.ELParserTest)
Time elapsed: 0 sectestReservedWordLe(org.jboss.tools.common.el.core.test.ELParserTest)
Time elapsed: 0.001
sectestReservedWordGe(org.jboss.tools.common.el.core.test.ELParserTest) Time elapsed: 0
sectestReservedWordTrue(org.jboss.tools.common.el.core.test.ELParserTest) Time elapsed:
0.001 sectestReservedWordFalse(org.jboss.tools.common.el.core.test.ELParserTest) Time
elapsed: 0 sectestReservedWordNull(org.jboss.tools.common.el.core.test.ELParserTest) Time
elapsed: 0 sectestReservedWordInstanceof(org.jboss.tools.common.el.core.test.ELParserTest)
Time elapsed: 0.001
sectestReservedWordEmpty(org.jboss.tools.common.el.core.test.ELParserTest) Time elapsed:
0 sectestReservedWordDiv(org.jboss.tools.common.el.core.test.ELParserTest) Time elapsed:
0.001 sectestReservedWordMod(org.jboss.tools.common.el.core.test.ELParserTest) Time
elapsed: 0 sectestComplexMath(org.jboss.tools.common.el.core.test.ELParserTest) Time
elapsed: 0.001 sectestComplexInvocation(org.jboss.tools.common.el.core.test.ELParserTest)
Time elapsed: 0
sectestSeveralELInstances(org.jboss.tools.common.el.core.test.ELParserTest) Time elapsed:
0 sectestElInParenthesis(org.jboss.tools.common.el.core.test.ELParserTest) Time elapsed:
0 sectestTokenizerOnIncorrectEL(org.jboss.tools.common.el.core.test.ELParserTest) Time
elapsed: 0.002 sectestLexemas(org.jboss.tools.common.el.core.test.ELParserTest) Time
elapsed: 0.001 sectestMultiThreadAccess(org.jboss.tools.common.el.core.test.ELParserTest)
Time elapsed: 1.207 sectestELModel(org.jboss.tools.common.el.core.test.ELModelTest) Time
elapsed: 0.002
sectestInvokingMethodOnExpressionInParenthesis(org.jboss.tools.common.el.core.test.ELModelTest)
Time elapsed: 0
sectestTagLibraryFunctionInvocation(org.jboss.tools.common.el.core.test.ELModelTest) Time
elapsed: 0 sectestRelevanceCheck(org.jboss.tools.common.el.core.test.RelevanceCheckTest)
Time elapsed: 18.195
sectestSetFile(org.jboss.tools.common.el.core.test.resolver.ElVarSearcherTest) Time
elapsed: 0.029
sectestFindAllVarsIFileInt(org.jboss.tools.common.el.core.test.resolver.ElVarSearcherTest)
Time elapsed: 0.447
sectestGetInstance(org.jboss.tools.common.el.core.test.resolver.ELResolverFactoryManagerTest)
Time elapsed: 0.001
sectestGetResolvers(org.jboss.tools.common.el.core.test.resolver.ELResolverFactoryManagerTest)
Time elapsed: 0.008
sectestTypeResolution(org.jboss.tools.common.el.core.test.resolver.TypeInfoCollectorTest)
Time elapsed: 6.368 sec <<< FAILURE!
junit.framework.AssertionFailedError
at junit.framework.Assert.fail(Assert.java:48)
at junit.framework.Assert.assertTrue(Assert.java:20)
at junit.framework.Assert.assertNotNull(Assert.java:218)
at junit.framework.Assert.assertNotNull(Assert.java:211)
at
org.jboss.tools.common.el.core.test.resolver.TypeInfoCollectorTest.testTypeResolution(TypeInfoCollectorTest.java:72)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at junit.framework.TestCase.runTest(TestCase.java:168)
at junit.framework.TestCase.runBare(TestCase.java:134)
at junit.framework.TestResult$1.protect(TestResult.java:110)
at junit.framework.TestResult.runProtected(TestResult.java:128)
at junit.framework.TestResult.run(TestResult.java:113)
at junit.framework.TestCase.run(TestCase.java:124)
at junit.framework.TestSuite.runTest(TestSuite.java:243)
at junit.framework.TestSuite.run(TestSuite.java:238)
at junit.framework.TestSuite.runTest(TestSuite.java:243)
at junit.framework.TestSuite.run(TestSuite.java:238)
at org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.java:83)
at org.apache.maven.surefire.junit4.JUnit4TestSet.execute(JUnit4TestSet.java:53)
at
org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:123)
at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:104)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at
org.apache.maven.surefire.util.ReflectionUtils.invokeMethodWithArray(ReflectionUtils.java:164)
at
org.apache.maven.surefire.booter.ProviderFactory$ProviderProxy.invoke(ProviderFactory.java:110)
at
org.apache.maven.surefire.booter.SurefireStarter.invokeProvider(SurefireStarter.java:175)
at
org.apache.maven.surefire.booter.SurefireStarter.runSuitesInProcess(SurefireStarter.java:123)
at
org.eclipse.tycho.surefire.osgibooter.OsgiSurefireBooter.run(OsgiSurefireBooter.java:84)
at
org.eclipse.tycho.surefire.osgibooter.HeadlessTestApplication.run(HeadlessTestApplication.java:21)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at
org.eclipse.equinox.internal.app.EclipseAppContainer.callMethodWithException(EclipseAppContainer.java:587)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:198)
at
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
at
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:353)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:180)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:629)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:584)
at org.eclipse.equinox.launcher.Main.run(Main.java:1438)
at org.eclipse.equinox.launcher.Main.main(Main.java:1414)
testCircularDependency(org.jboss.tools.common.el.core.test.resolver.TypeInfoCollectorTest)
Time elapsed: 6.143
sectestOverridenMethod(org.jboss.tools.common.el.core.test.resolver.TypeInfoCollectorTest)
Time elapsed: 6.142
sectestMissingInterface(org.jboss.tools.common.el.core.test.resolver.TypeInfoCollectorTest)
Time elapsed: 6.122
sectestProperties(org.jboss.tools.common.el.core.test.resolver.TypeInfoCollectorTest)
Time elapsed: 6.098 sec
{code}
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see:
http://www.atlassian.com/software/jira