ktmprabhu / spray

Automatically exported from code.google.com/p/spray
0 stars 0 forks source link

Spray generator produce invalid method calls when referenced EMF attribute starts with "is" #256

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Hi,
I have a problem with the generated Base files in spray, because they call 
a wrong method name in a special case. 
When I set the name of an EAttribute in my ecore model to a name that 
starts with "is" than a method in the emf-project will generate that starts 
with "isIs".
Spray calls not the method which starts with "isIs", Spray try to call a 
method that starts with "is" and not exist.

Greetings René

(originally posted here: 
http://groups.google.com/group/spray-users/t/342bdc2a649ddbe5)

Original issue reported on code.google.com by de.abg.r...@gmail.com on 12 Apr 2013 at 2:12

GoogleCodeExporter commented 8 years ago
This issue was closed by revision 9d84c08a736f.

Original comment by de.abg.r...@gmail.com on 17 Apr 2013 at 7:56

GoogleCodeExporter commented 8 years ago
added test projects, to reproduce.

Fix, that is pushed removes logic that ignores attributes that already start 
with "is" into logic that always adds "is". Could become a problem when 
genmodel is configured to generate no "isIs" methods (would be better to 
interpret genmodel settings though). 

Original comment by de.abg.r...@gmail.com on 17 Apr 2013 at 8:00

Attachments:

GoogleCodeExporter commented 8 years ago
This issue was closed by revision 9d84c08a736f.

Original comment by karsten....@googlemail.com on 5 Jun 2013 at 8:23