Bug 117696 - ExtractInterfaceProcessor should not hardcode ".java"
Summary: ExtractInterfaceProcessor should not hardcode ".java"
Status: VERIFIED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 3.2   Edit
Hardware: PC Windows XP
: P3 enhancement (vote)
Target Milestone: 3.2 M4   Edit
Assignee: Tobias Widmer CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-11-23 05:48 EST by Markus Keller CLA
Modified: 2005-12-13 09:42 EST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Markus Keller CLA 2005-11-23 05:48:43 EST
I20051122-1300

See bug 89977. You should use JavaModelUtil#getRenamedCUName(..) to compute the name of the new interface's compilation unit (new file should have the same extension as fSubType's cu).

Note that checkTypeName(String name) uses 'fSuperName' as well as 'name' to refer to the new type. It should either use 'name' exclusively (also in checkSuperType()) or else use 'fSuperName' and remove the 'name' parameter.
Comment 1 Tobias Widmer CLA 2005-11-23 09:03:43 EST
Fixed in HEAD > 20051123
Comment 2 Philip Mayer CLA 2005-12-13 05:50:27 EST
Verifying...
Comment 3 Philip Mayer CLA 2005-12-13 06:12:33 EST
Verified in I20051213-0010.