You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
One point in time, there was no generic, so the class provided the method signature compareTo(Object)
Today we override it and it has become compareTo(Version other)
Now I have a classfile that has a method reference (compiled against the one with generics) that looks like this org/osgi/framework/Version#compareTo(Lorg/osgi/framework/Version;)I
Given I can really run the old (non generic) version against that compiled classfile, will it still work or result in a NoSuchMethod or similar?!?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
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;)I
Given I can really run the old (non generic) version against that compiled classfile, will it still work or result in a
NoSuchMethod
or similar?!?Beta Was this translation helpful? Give feedback.
All reactions