| Summary: | [xtend] Compiler produces illegal java | ||
|---|---|---|---|
| Product: | [Modeling] TMF | Reporter: | Sebastian Zarnekow <sebastian.zarnekow> |
| Component: | Xtext | Assignee: | Project Inbox <tmf.xtext-inbox> |
| Status: | CLOSED FIXED | QA Contact: | |
| Severity: | normal | ||
| Priority: | P3 | CC: | sven.efftinge |
| Version: | 2.0.0 | Flags: | sebastian.zarnekow:
indigo+
|
| Target Milestone: | M7 | ||
| Hardware: | PC | ||
| OS: | Mac OS X - Carbon (unsup.) | ||
| Whiteboard: | |||
Another example:
compile(Entity e) {
val body = body(e);
'''
«body»
'''
}
body(Entity e) {}
public StringConcatenation compile(final Entity e) {
StringConcatenation _xblockexpression = null;
{
_this.body(e);
final void body = null; <<-- error is here
StringConcatenation builder = new StringConcatenation();
builder.newLine();
builder.append(null, "");
builder.newLineIfNotEmpty();
_xblockexpression = (builder);
}
return _xblockexpression;
}
public void body(final Entity e, final ImportManager importManager) {
}
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 |
foo() { new StringBuilderBasedAppendable(null) ''' ''' } yields public StringConcatenation foo() { StringConcatenation _xblockexpression = null; {new StringBuilderBasedAppendable(null) <<-- error is here StringConcatenation builder = new StringConcatenation(); builder.newLine(); _xblockexpression = (builder); } return _xblockexpression; }