I am attempting to write a class that sorts a vector and is an extension of
java.util.Vector .
It basically works by finding the difference between two integer values
stored in an object that the vector is holding.
My problem is that I can get the code to work fine in Java 1.4.2 but when I
try migrating the code to the .NET frame work it can not find the .get method.
if{((PCData)get(j)).compareTo((PCData)get(j+1))<0)
The error is:
Cannot find method 'get(int)' in 'PS.SortableVector'
If anyone has any ideas I would be extremely grateful.
Thanks
Harold Clements
Lars-Inge T?nnessen [VJ# MVP] - 01 Nov 2004 19:04 GMT
> If anyone has any ideas I would be extremely grateful.
We would love to take a look at you code.
I would guess the problem is with the supported version issue, but we must
take a look at you code to see if we can come up with any ideas.
Regards,
Lars-Inge T?nnessen
Bora Ertung - 08 Nov 2004 10:08 GMT
You should not forget that J# only supports 1.1.4 compatible java SDK
classes. get() method in Vector class is 1.2 based. You may use
elementAt(index).
> I am attempting to write a class that sorts a vector and is an extension of
> java.util.Vector .
[quoted text clipped - 14 lines]
> Thanks
> Harold Clements