Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 353532 - Support model element interfaces that do not use 'I' prefix convention
Summary: Support model element interfaces that do not use 'I' prefix convention
Status: CLOSED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: Sapphire (show other bugs)
Version: unspecified   Edit
Hardware: All All
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: Konstantin Komissarchik CLA
QA Contact:
URL:
Whiteboard:
Keywords: plan
Depends on:
Blocks:
 
Reported: 2011-08-01 20:00 EDT by Konstantin Komissarchik CLA
Modified: 2021-11-19 09:22 EST (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Konstantin Komissarchik CLA 2011-08-01 20:00:48 EDT
A convention to prefix interfaces with 'I' is common, but it is only a convention and there are plenty of developers who prefer not to use this convention. Sapphire currently requires this convention to be used. This requirement should be removed.

Proposed changes:

1. Add className attribute to @GenerateImpl annotation. This will allow explicit control over impl class name. The @GenerateImpl annotation already supports explicit control over impl package name with packageName attribute.

2. The default value for impl className should be computed as follows:

if using 'I' prefix convention
    default impl class name is typeClassName.substring(1)
else
    default impl class name is typeClassName + "Impl"
Comment 1 Konstantin Komissarchik CLA 2011-08-01 20:11:23 EDT
Done.
Comment 2 Shenxue Zhou CLA 2011-11-28 16:03:11 EST
Verified with Purchase order sample. Closing.