| Summary: | Missing error message for invalid_generic_argument_types | ||
|---|---|---|---|
| Product: | [Modeling] TMF | Reporter: | Carlo M-R <carlo.mueller-reichenwallner> |
| Component: | Xtext | Assignee: | Project Inbox <tmf.xtext-inbox> |
| Status: | CLOSED WORKSFORME | QA Contact: | |
| Severity: | major | ||
| Priority: | P3 | CC: | Holger.Schill, sven.efftinge |
| Version: | 2.1.1 | Flags: | sven.efftinge:
juno+
|
| Target Milestone: | M5 | ||
| Hardware: | PC | ||
| OS: | Windows XP | ||
| Whiteboard: | |||
I think this is because on org.eclipse.xtext.xbase.validation.FeatureCallValidator.error(XConstructorCall, String) this case is not treated. Correct me if I am wrong. I couldn't reproduce the error message. It might be, that the bigger context (i.e. the rest of the Xtend file) is important. Please try to provide a reduced example we can reproduce. Note, that the code is not valid (although not checked yet). Because the method is overloaded in a way, that the given expression could work for both. We'll have a check for this in the future and you'll get an error message then. See https://bugs.eclipse.org/bugs/show_bug.cgi?id=366359 Please reopen with a reproducible example. Closing all bugs that were set to RESOLVED before Neon.0 Closing all bugs that were set to RESOLVED before Neon.0 |
Build Identifier: In the Scope provider we get an error after upgrading from Xtext 2.0.1 to Xtext 2.2.0: def IScope scope_MetaData_type(Entity ctx, EReference ref) { new FilteringDelegateScope(delegateGetScope(ctx, ref), [d|d.qualifiedName.toString.startsWith('foo.bar.')]); } Missig error message for org.eclipse.xtext.xbase.validation.IssueCodes.invalid_generic_argument_types The FilteringDelegateScope is a custom class with following constructors: public FilteringDelegateScope(IScope delegate, Function1<IEObjectDescription, Boolean> predicate) {} public FilteringDelegateScope(IScope delegate, Predicate<IEObjectDescription> predicate) {} Reproducible: Always