| Summary: | [xbase] CCE in validator | ||
|---|---|---|---|
| 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.3.0 | Flags: | sebastian.zarnekow:
juno+
|
| Target Milestone: | --- | ||
| Hardware: | PC | ||
| OS: | Mac OS X - Carbon (unsup.) | ||
| Whiteboard: | |||
|
Description
Sebastian Zarnekow
1) Input files in two open editors:
class XtendClass {
new() {
new Entity()
}
}
===
entity Entity {}
2) Edit the dmodel file with the entity and add an operation:
entity Entity {
op name () : String {
""
}
}
3) Hit save
The validator kicks in an revalidates the xtend class after it unloaded the referenced dmodel. Proxy resolution will lead to the CCE because of the index based URI fragments.
Happens with two Xtend classes, too. Start with:
class OtherClass {
def getName() {
""
}
}
class XtendClass {
new() {
new OtherClass()
}
}
And add a constructor to OtherClass:
class OtherClass {
def getName() {
""
}
new () {
}
}
works now Requested via bug 522520. -M. |