Community
Participate
Working Groups
Build Identifier: 2.1.0.v201111010612 xtend: def Package create result: icmDslFactory.createPackage createPackage() { result } java: public com.csg.cs.tools.mdgen.icm.icmDsl.Package createPackage() { final ArrayList<?>_cacheKey = CollectionLiterals.newArrayList(); final com.csg.cs.tools.mdgen.icm.icmDsl.Package _result; synchronized (_createCache_createPackage) { if (_createCache_createPackage.containsKey(_cacheKey)) { return _createCache_createPackage.get(_cacheKey); } Icm2Icm _Icm2Icm = Icm2Icm; // <== BUG IcmDslFactory _icmDslFactory = _Icm2Icm.getIcmDslFactory(); com.csg.cs.tools.mdgen.icm.icmDsl.Package _createPackage = _icmDslFactory.createPackage(); _result = _createPackage; _createCache_createPackage.put(_cacheKey, _result); } _init_createPackage(_result); return _result; } Reproducible: Always Steps to Reproduce: 1. see <== bug 2. 3.
here the correct java code which was generated with xtext 2.0.1: public Package createDefPackage(final Package origPackage) { final ArrayList<?>_cacheKey = CollectionLiterals.newArrayList(origPackage); final Package result; synchronized (_createCache_createDefPackage) { if (_createCache_createDefPackage.containsKey(_cacheKey)) { return _createCache_createDefPackage.get(_cacheKey); } IcmDslFactory _icmDslFactory = this.getIcmDslFactory(); Package _createPackage = _icmDslFactory.createPackage(); result = _createPackage; _createCache_createDefPackage.put(_cacheKey, result); /serano
pushed to master
*** Bug 363071 has been marked as a duplicate of this bug. ***
*** Bug 362695 has been marked as a duplicate of this bug. ***
Closing all bugs that were set to RESOLVED before Neon.0