Skip to main content



      Home
Home » Language IDEs » Java Development Tools (JDT) » Building eclipse.jdt.ui fails test stage(eclipse.jdt.ui)
Building eclipse.jdt.ui fails test stage [message #1754885] Thu, 23 February 2017 09:13 Go to next message
Eclipse UserFriend
I tried to build eclipse.jdt.ui plugin but it fails test phase. I did the following:

git clone https://github.com/eclipse/eclipse.jdt.ui.git

cd eclipse.jdt.ui

git checkout R4_6_maintenance

cd ..

mvn -P build-individual-bundles clean install -f eclipse.jdt.ui/pom.xml


I get the following error in terminal:

Tests run: 1926, Failures: 42, Errors: 1870, Skipped: 0

[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO] 
[INFO] eclipse.jdt.ui ..................................... SUCCESS [  0.424 s]
[INFO] org.eclipse.ltk.core.refactoring ................... SUCCESS [ 10.322 s]
[INFO] org.eclipse.ltk.ui.refactoring ..................... SUCCESS [  8.043 s]
[INFO] org.eclipse.jdt.core.manipulation .................. SUCCESS [  5.306 s]
[INFO] org.eclipse.jdt.ui ................................. SUCCESS [ 35.189 s]
[INFO] org.eclipse.jdt.junit.runtime ...................... SUCCESS [  4.937 s]
[INFO] org.eclipse.jdt.junit.core ......................... SUCCESS [  4.917 s]
[INFO] org.eclipse.jdt.junit .............................. SUCCESS [  8.430 s]
[INFO] org.eclipse.jdt.junit4.runtime ..................... SUCCESS [  4.011 s]
[INFO] org.eclipse.jdt.ui.tests ........................... FAILURE [ 49.870 s]
[INFO] org.eclipse.jdt.text.tests ......................... SKIPPED
[INFO] org.eclipse.ltk.core.refactoring.tests ............. SKIPPED
[INFO] org.eclipse.ltk.ui.refactoring.tests ............... SKIPPED
[INFO] org.eclipse.jdt.ui.tests.refactoring ............... SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 02:42 min
[INFO] Finished at: 2017-02-23T14:22:46+01:00
[INFO] Final Memory: 91M/1502M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.eclipse.tycho:tycho-surefire-plugin:0.25.0:test (default-test) on project org.eclipse.jdt.ui.tests: There are test failures.
[ERROR] 
[ERROR] Please refer to /eclipse.jdt.ui/org.eclipse.jdt.ui.tests/target/surefire-reports for the individual test results.


And when I looked in that file I found a lot of errors like this:

-------------------------------------------------------------------------------
Test set: org.eclipse.jdt.ui.tests.LeakTestSuite
-------------------------------------------------------------------------------
Tests run: 21, Failures: 1, Errors: 19, Skipped: 0, Time elapsed: 14.097 sec <<< FAILURE! - in org.eclipse.jdt.ui.tests.LeakTestSuite
testTextEditorCloseOneOfTwo(org.eclipse.jdt.ui.tests.leaks.JavaLeakTest)  Time elapsed: 0.001 sec  <<< ERROR!
java.lang.NoSuchMethodError: org.eclipse.core.resources.IProject.clearCachedDynamicReferences()V
	at org.eclipse.jdt.internal.core.ChangeClasspathOperation.classpathChanged(ChangeClasspathOperation.java:57)
	at org.eclipse.jdt.internal.core.SetClasspathOperation.executeOperation(SetClasspathOperation.java:74)
	at org.eclipse.jdt.internal.core.JavaModelOperation.run(JavaModelOperation.java:724)
	at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:2240)
	at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:2267)
	at org.eclipse.jdt.internal.core.JavaModelOperation.runOperation(JavaModelOperation.java:795)
	at org.eclipse.jdt.internal.core.JavaProject.setRawClasspath(JavaProject.java:3091)
	at org.eclipse.jdt.internal.core.JavaProject.setRawClasspath(JavaProject.java:3053)
	at org.eclipse.jdt.internal.core.JavaProject.setRawClasspath(JavaProject.java:3106)
	at org.eclipse.jdt.testplugin.JavaProjectHelper.createJavaProject(JavaProjectHelper.java:166)
	at org.eclipse.jdt.ui.tests.leaks.JavaLeakTest.setUp(JavaLeakTest.java:265)


Can anyone help me debug / fix this?
Re: Building eclipse.jdt.ui fails test stage [message #1754982 is a reply to message #1754885] Fri, 24 February 2017 16:08 Go to previous messageGo to next message
Eclipse UserFriend
You're setup seems to be inconsistent wrt the fix for https://bugs.eclipse.org/507795 : org.eclipse.jdt.core has the change, while org.eclipse.core.resources does not have the corresponding part.
If the latter is pulled from your local maven repository, check it's version and try to get it updated either using -U or by removing the outdated version.
Re: Building eclipse.jdt.ui fails test stage [message #1755039 is a reply to message #1754982] Mon, 27 February 2017 06:23 Go to previous message
Eclipse UserFriend
Thanks, this solved my problem.
Previous Topic:Java Type mismatch error on upgrade Eclipse Mars to Eclipse Neon
Next Topic:import java project
Goto Forum:
  


Current Time: Tue Jul 08 01:25:48 EDT 2025

Powered by FUDForum. Page generated in 0.06278 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top