| Summary: | [Xtend] Wrong return type in generated Java | ||
|---|---|---|---|
| Product: | [Modeling] TMF | Reporter: | Robert von Massow <rvonmassow> |
| Component: | Xtext | Assignee: | Project Inbox <tmf.xtext-inbox> |
| Status: | CLOSED FIXED | QA Contact: | |
| Severity: | normal | ||
| Priority: | P3 | CC: | sebastian.zarnekow, sven.efftinge |
| Version: | 2.0.0 | Flags: | sven.efftinge:
indigo+
|
| Target Milestone: | M7 | ||
| Hardware: | PC | ||
| OS: | Linux | ||
| Whiteboard: | |||
Pushed to master Closing all bugs that were set to RESOLVED before Neon.0 Closing all bugs that were set to RESOLVED before Neon.0 |
Build Identifier: The following Xtend function which clearly returns a boolean isInlineCode (CodeBlock cb) { return cb.contents.size == 1 && !cb.contents.head.toString.contains("\n"); } is translated to void: public void isInlineCode(final CodeBlock cb) { EList<EObject> _contents = cb.getContents(); int _size = _contents.size(); boolean _operator_equals = ObjectExtensions.operator_equals(((Object)_size), 1); EList<EObject> _contents_1 = cb.getContents(); EObject _head = IterableExtensions.<EObject>head(_contents_1); String _string = _head.toString(); boolean _contains = _string.contains("\n"); boolean _operator_not = BooleanExtensions.operator_not(_contains); boolean _operator_and = BooleanExtensions.operator_and(_operator_equals, _operator_not); return _operator_and; } Reproducible: Always