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

Bug 345628

Summary: [1.7] Rename disjunctive type to union type
Product: [Eclipse Project] JDT Reporter: Olivier Thomann <Olivier_Thomann>
Component: CoreAssignee: Satyam Kandula <satyam.kandula>
Status: VERIFIED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: deepakazad, markus.kell.r, srikanth_sankaran, stephan.herrmann
Version: 3.7   
Target Milestone: 3.7.1   
Hardware: PC   
OS: Windows 7   
Whiteboard:
Attachments:
Description Flags
Patch
none
renaming left overs none

Description Olivier Thomann CLA 2011-05-12 13:04:29 EDT
The latest version of the specification renamed disjunctive type to be union type.

This should be reflected inside class, field, methods names.
Comment 1 Srikanth Sankaran CLA 2011-05-13 01:02:19 EDT
Satyam, please follow up, TIA.
Comment 2 Satyam Kandula CLA 2011-05-17 10:39:50 EDT
Created attachment 195866 [details]
Patch

Modified all references to disjunctive to union. Even modified the comments too. 

Haven't included the parser resource files in the patch as there are binary.
Comment 3 Satyam Kandula CLA 2011-05-18 00:38:43 EDT
Released the patch
Comment 4 Satyam Kandula CLA 2011-05-18 00:43:39 EDT
Deepak, I have made changes to all references to Disjunctive type to Union type. If you have used this type, please modify accordingly.
Comment 5 Deepak Azad CLA 2011-05-18 03:25:29 EDT
Thanks Satyam. I have updated the references in o.e.jdt.ui.

3 files were modified.
GenericVisitor.java
ASTFlattener.java
HierarchicalASTVisitor.java
Comment 6 Stephan Herrmann CLA 2011-06-28 09:56:31 EDT
I found a few left overs: CompletionParser and ThrownExceptionFinder
have some local variables like:
  UnionTypeReference disjunctiveTypeReference

Should we include the (trivial) fix in this bug, too?
Comment 7 Olivier Thomann CLA 2011-06-28 10:02:57 EDT
(In reply to comment #6)
> I found a few left overs: CompletionParser and ThrownExceptionFinder
> have some local variables like:
>   UnionTypeReference disjunctiveTypeReference
> 
> Should we include the (trivial) fix in this bug, too?
yes please.
Comment 8 Stephan Herrmann CLA 2011-06-28 10:21:41 EDT
Created attachment 198736 [details]
renaming left overs

This patch renames the local variables mentioned in comment 6
and adjusts two comments in tests.
Comment 9 Stephan Herrmann CLA 2011-06-28 10:29:29 EDT
Verified by code inspection:
After applying the patch from comment 8 jdt.core and its test projects
contain no more mentions of "disjunctive" (except in buildnotes).