Download
Getting Started
Members
Projects
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
More
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
Toggle navigation
Bugzilla – Attachment 85838 Details for
Bug 211270
error in generated code for two level override, if return type changes
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read
this important communication.
[patch]
I'll mark it as a patch this type.
211270.patch (text/plain), 1.86 KB, created by
Ed Merks
on 2007-12-26 07:58:16 EST
(
hide
)
Description:
I'll mark it as a patch this type.
Filename:
MIME Type:
Creator:
Ed Merks
Created:
2007-12-26 07:58:16 EST
Size:
1.86 KB
patch
obsolete
>### Eclipse Workspace Patch 1.0 >#P org.eclipse.emf.codegen.ecore >Index: src/org/eclipse/emf/codegen/ecore/genmodel/impl/GenClassImpl.java >=================================================================== >RCS file: /cvsroot/modeling/org.eclipse.emf/org.eclipse.emf/plugins/org.eclipse.emf.codegen.ecore/src/org/eclipse/emf/codegen/ecore/genmodel/impl/GenClassImpl.java,v >retrieving revision 1.81 >diff -u -r1.81 GenClassImpl.java >--- src/org/eclipse/emf/codegen/ecore/genmodel/impl/GenClassImpl.java 12 Jun 2007 20:56:34 -0000 1.81 >+++ src/org/eclipse/emf/codegen/ecore/genmodel/impl/GenClassImpl.java 25 Dec 2007 14:44:20 -0000 >@@ -2902,9 +2902,11 @@ > else if ((genOperation.getName().startsWith("get") || genOperation.getName().startsWith("is")) > && genOperation.getGenParameters().isEmpty()) > { >+ String operationType = genOperation.getType(GenClassImpl.this); > for (GenFeature genFeature : allGenFeatures) > { >- if (genFeature.getGetAccessor().equals(genOperation.getName())) >+ if (genFeature.getGetAccessor().equals(genOperation.getName()) && >+ genFeature.getType(GenClassImpl.this).equals(operationType)) > { > return false; > } >@@ -2936,11 +2938,16 @@ > > if (!genOperation.hasBody()) > { >+ String operationType = genOperation.getType(GenClassImpl.this); > for (GenOperation baseOperation : extendsGenClassOperations) > { > if (baseOperation.isOverrideOf(GenClassImpl.this, genOperation)) > { >- return false; >+ String baseOperationType = baseOperation.getType(GenClassImpl.this); >+ if (operationType== null ? baseOperationType == null : operationType.equals(baseOperationType)) >+ { >+ return false; >+ } > } > } > }
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 211270
:
83991
|
83992
|
85836
| 85838