Replies: 1 comment
-
|
Here's a DIY experiment to answer the question: public class Test implements Comparable<Test> {
public int compareTo(Test other) { return -1; }
}Generating the method Comparable<Test> c = new Test();
c.compareTo(new Test()); // expecting Test.compareTo() to be invoked! |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
This is not really a question about JDT directly, but ti feels JDT devlopers are the right audience to ask!
I'm currently working on a tool that checks OSGi version ranges and came about an interesting problem:
compareTo(Object)compareTo(Version other)org/osgi/framework/Version#compareTo(Lorg/osgi/framework/Version;)IGiven I can really run the old (non generic) version against that compiled classfile, will it still work or result in a
NoSuchMethodor similar?!?Beta Was this translation helpful? Give feedback.
All reactions