Community
Participate
Working Groups
It is possible to define two class variables with the same name: @Inject String cache @Inject Integer cache @Inject Object cache Leads to one String variable cache and cache_1 and cache_2 in java code. In xtend the type of cache is also String and you can not access the last two. There should be a check for duplicate variable names inside a class.
Created attachment 203588 [details] Patch for JavaValidator and Testcase Added new Validation method for this case.
In the long run we should define all these Java-based constraints on the JvmModel, so they will automatically get applied for any Xbase-based language
Pushed to MASTER. Validation is performed on the Xtend level. Patch was not used, but thanks for your effort.
Jvm model validation will be handled in separate bug #361114
Closing all bugs that were set to RESOLVED before Neon.0