Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 438961

Summary: Problems building jdt.core from master (reference to old org.eclipse.test.performance)
Product: [Eclipse Project] Platform Reporter: Markus Keller <markus.kell.r>
Component: RelengAssignee: Markus Keller <markus.kell.r>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: david_williams, jarthana, markus.kell.r
Version: 4.4   
Target Milestone: 4.5 M1   
Hardware: All   
OS: All   
Whiteboard:

Description Markus Keller CLA 2014-07-05 07:12:08 EDT
Pavel wrote:
> [jdt-core-dev] Could not compile
> org.eclipse.jdt.core.tests.compiler\src\org\eclipse\jdt\core\tests\junit\extension\TestCase.java
> from master

> I try build JDT and Eclipse Platform from sources (updated now from the Eclipse Git repo, ‘master’ branch) with maven as documented in [1] and got follows error:
>  
> [ERROR] Failed to execute goal org.eclipse.tycho:tycho-compiler-plugin:0.20.0:compile (default-compile) on project org.eclipse.jdt.core.tests.compiler: Compilation failure: Compilation failure:
> [ERROR] C:\Work\Develop\J\z\eclipse.jdt.core\org.eclipse.jdt.core.tests.compiler\src\org\eclipse\jdt\core\tests\junit\extension\TestCase.java:[622]
> [ERROR] List bytecodeOrderedTestNames = OrderedTestSuite.getBytecodeOrderedTestNames(evaluationTestClass);
> [ERROR] ^^^^^^^^^^^^^^^^^^^^^^^^^^^
> [ERROR] The method getBytecodeOrderedTestNames(Class) is undefined for the type OrderedTestSuite
> [ERROR] -> [Help 1]
>  
> The org.eclipse.test.OrderedTestSuite class into the ‘master’ branch have the getBytecodeOrderedTestNames() method! May be JDT using compiled version of `eclipse.platform.releng`, but I don’t know how to switch build on the actual version of the ‘OrderedTestSuite’ class. Can you help me?
>  
> [1] http://wiki.eclipse.org/Platform-releng/Platform_Build

I think the problem is here:
[INFO] Fetching org.eclipse.test.performance_3.9.100.v20140518-1929.jar.pack.gz from http://download.eclipse.org/eclipse/updates/4.4-I-builds/I20140606-1215/plugins/ (0B of 46.65kB at 0B/s)

4.4-I-builds is not the right update site for 4.5 builds. But I don't know where this is is defined in the build.

David, please move this bug to Platform/Releng if the update site is defined there.
Comment 1 Markus Keller CLA 2014-07-05 07:16:14 EDT
Updated the version of org.eclipse.jdt.core.tests.compiler and required bundle versions: http://git.eclipse.org/c/jdt/eclipse.jdt.core.git/commit/?id=08023b926208c47fd71659ad35d5f6917ae583aa
Comment 2 Markus Keller CLA 2014-07-05 09:13:03 EDT
It's probably this line in /eclipse.platform.releng.aggregator/eclipse-platform-parent/pom.xml:

    <eclipse-p2-repo.url>http://download.eclipse.org/eclipse/updates/4.4-I-builds</eclipse-p2-repo.url>

Updated to 4.5-I-builds: http://git.eclipse.org/c/platform/eclipse.platform.releng.aggregator.git/commit/?id=0850d71dcd9cd05c12ff960221be2b05152cd7f0
Comment 3 David Williams CLA 2014-07-05 10:31:49 EDT
That looks right to me, too. 

I've updated our "instructions" at 

Bug 436736 - Prep for 4.5 (Mars) and 4.4 maintenance builds

and updated the maintenance branch to use "4.4-M-builds" for this special "pre-req" repo.