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

Bug 337707

Summary: [JUnit] JUnitJunitTests depend on the method ordering
Product: [Eclipse Project] JDT Reporter: Dani Megert <daniel_megert>
Component: UIAssignee: Markus Keller <markus.kell.r>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3    
Version: 3.7   
Target Milestone: 3.7 M7   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Bug Depends on:    
Bug Blocks: 342688    
Attachments:
Description Flags
Fix none

Description Dani Megert CLA 2011-02-21 06:51:39 EST
HEAD.

The JUnitJunitTests depend on the method ordering. We were just lucky that they all passed on different JREs so far but not some of them fail on JRE 1.7.
Comment 1 Markus Keller CLA 2011-02-21 08:10:30 EST
The problem is probably not the order of the tests themselves, but the order of the tests that are executed by the JUnitJunitTests (in the 3rd VM).

Solution will be to use OrderedTestSuite also in the 3rd VM.
Comment 2 Markus Keller CLA 2011-04-27 13:32:15 EDT
Created attachment 194186 [details]
Fix

Also needs re-generated rtstubs15.jar and rtstubs16.jar (the old ones are missing annotations).
Comment 3 Markus Keller CLA 2011-04-27 15:49:17 EDT
Fixed for I20110427-1800.