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

Bug 362200

Summary: Failures in OTTypeHierarchyTests
Product: [Tools] Objectteams Reporter: Stephan Herrmann <stephan.herrmann>
Component: OTDTAssignee: Stephan Herrmann <stephan.herrmann>
Status: VERIFIED FIXED QA Contact:
Severity: normal    
Priority: P3    
Version: 2.0   
Target Milestone: 2.1 M3   
Hardware: Other   
OS: Linux   
Whiteboard:
Attachments:
Description Flags
fix none

Description Stephan Herrmann CLA 2011-10-27 10:12:16 EDT
In a recent build we had failures in these tests:

org.eclipse.objectteams.otdt.tests.superhierarchy.OTSuperTypeHierarchyTest001.testGetAllSuperclasses_T8R2_phantomMode

org.eclipse.objectteams.otdt.tests.superhierarchy.OTSuperTypeHierarchyTest001.testGetAllSuperclasses_T7R3_phantomMode

org.eclipse.objectteams.otdt.tests.superhierarchy.OTSuperTypeHierarchyTest001.testGetAllSuperclasses_T7R2_phantomMode

org.eclipse.objectteams.otdt.tests.superhierarchy.OTSuperTypeHierarchyTest001.testGetAllSuperclasses_T4R2_phantomMode

org.eclipse.objectteams.otdt.tests.superhierarchy.OTSuperTypeHierarchyTest001.testLinearizationR2

org.eclipse.objectteams.otdt.tests.superhierarchy.OTSuperTypeHierarchyTest006.testGetAllSuperclasses_T3R2_phantomMode

When investigating when this was introduced I wasn't even able to reproduce
a clean test run using a recent release version, so I assume that the failures
depend on some implicit processing-order issue?
Comment 1 Stephan Herrmann CLA 2011-10-27 10:16:24 EDT
Created attachment 206073 [details]
fix

This check in HierarchyResolver was too narrow, thus no OTType was
registered for phantom role T7.R1.

Inspecting the file history showed that this change was introduced way back
during the migration to Eclipse 3.2 to accommodate changed processing
order in 3.2, but the condition in question was not further documented.
Comment 2 Stephan Herrmann CLA 2011-10-27 10:19:33 EDT
Released for 2.1 M3 (r2074).
Comment 3 Stephan Herrmann CLA 2012-01-17 13:22:26 EST
The fix has been backported to 2.0.2 via commit 8ad00e64e1caa6f90336b7a9594f5694c29ac893
Comment 4 Stephan Herrmann CLA 2012-09-22 15:59:11 EDT
Tests are green, considering as fixed indeed.