With Java 1.5 you get a compile error for string.compareTo(gstring), as Comparable uses Generics in Java 5. But still the commutativity is destroyed and it gives you no runtime safety, as we all no.
This is part of the gstring – string equality discussion.
With Java 1.5 you get a compile error for string.compareTo(gstring), as Comparable uses Generics in Java 5. But still the commutativity is destroyed and it gives you no runtime safety, as we all no.
This is part of the gstring – string equality discussion.