| Summary: | Cast exception in org.eclipse.xtext.nodemodel.impl.CompositeNodeWithSemanticElement | ||
|---|---|---|---|
| Product: | [Modeling] TMF | Reporter: | Mark Christiaens <mark.g.j.christiaens> |
| Component: | Xtext | Assignee: | Project Inbox <tmf.xtext-inbox> |
| Status: | CLOSED FIXED | QA Contact: | |
| Severity: | normal | ||
| Priority: | P3 | CC: | mark.g.j.christiaens, sebastian.zarnekow |
| Version: | 2.0.0 | Flags: | sebastian.zarnekow:
indigo+
|
| Target Milestone: | M5 | ||
| Hardware: | PC | ||
| OS: | Linux | ||
| Whiteboard: | |||
I modified it to
public boolean isAdapterForType(Object type) {
return type instanceof Class <?> && INode.class.isAssignableFrom((Class<?>)type);
}
and did not notice any further problems. But frankly, I don't exactly know what I'm doing here so this may not be a good patch.
Fixed. Thanks for the pointer and the patch. Closing all bugs that were set to RESOLVED before Neon.0 Closing all bugs that were set to RESOLVED before Neon.0 |
Build Identifier: 20100917-0705 I don't know the exact context in which this occurred but I got a cast exception in public boolean isAdapterForType(Object type) { return INode.class.isAssignableFrom((Class<?>)type); } Reproducible: Couldn't Reproduce