| Summary: | [Xtend][Xbase] duplicate operation check does not take type erasure into account | ||
|---|---|---|---|
| Product: | [Modeling] TMF | Reporter: | Christian Dietrich <christian.dietrich.opensource> |
| Component: | Xtext | Assignee: | Project Inbox <tmf.xtext-inbox> |
| Status: | CLOSED FIXED | QA Contact: | |
| Severity: | normal | ||
| Priority: | P3 | CC: | knut.wannheden, sebastian.zarnekow, sven.efftinge |
| Version: | 2.0.0 | Flags: | sven.efftinge:
indigo+
|
| Target Milestone: | SR2 | ||
| Hardware: | All | ||
| OS: | All | ||
| Whiteboard: | |||
Pushed to master. The check does not take generic methods into account. The following example does not result in any errors:
def <T> bar(T t) {
}
def <T> bar(T t) {
}
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 |
I am using Xtext 2.0 M6 In Java it is not allowed to have something like public void _doWithList(final List<String> a) { } public void _doWithList(final List<Integer> a) { } due type erasure. but it is allowed to have something like dispatch doWithList(List<String> a) { } dispatch doWithList(List<Integer> a) { } doSomethingWithList(List<String> a) { } doSomethingWithList(List<Integer> a) { } in your xtend2 file. i'd expect to get an error here too. similar problem for casts doSomeStuff(List<String> in) { return in as List<CharSequence> }