eclipse-emf / org.eclipse.emf

Eclipse Public License 2.0
10 stars 13 forks source link

[21] XMLString.removeLast() does not compile #13

Closed jukzi closed 9 months ago

jukzi commented 10 months ago

using JDK 21: org.eclipse.emf.ecore.xmi.impl.XMLString.removeLast():

- overrides java.util.List<org.eclipse.emf.ecore.xmi.impl.StringSegment.Element>.removeLast
- The return type is incompatible with List<StringSegment.Element>.removeLast()
jukzi commented 10 months ago

making removeLast private and rename it would solve the problem for jdk 21

merks commented 10 months ago

That's nasty. It's a public class that can be extended and that method could be overridden. Highly unlikely of course...