Community
Participate
Working Groups
Build Identifier: 20110615-0604 org.eclipse.xtend.typesystem.emf.check.CheckEValidatorAdapter contains an error in method runExtXptCheck(). In line 178 the isValid boolean flag is computed wrong by conjunction with the hasError return value: "isValid &= issues.hasErrors();" But obviously it should be the conjunction with the NEGATED hasErrors return value: "isValid &= !issues.hasErrors();" Reproducible: Always Steps to Reproduce: 1. Use an EMF model that declares a class x referencing the type java.lang.String 2. Use another class y that has a value of type x (that also COULD be java.lang.String directly) 3. Generate code, tree editor 4. Observe that the CheckEValidator is run and the wrong code is executed 5. Observe a (wrong) error message pointing to a bad value in x: 'Feature x contains a bad value'
You are right, this is a mistake. Thanks for reporting!
Bug resolved before Xpand 1.2 release date => Closing