Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
@Zaphod65 Just not enjoying working with it and I'm stuck with it :(
There's just so much backwards compatibility everywhere that I can't do simple things like declare an array of a generic type without declaring an array of Object, casting and getting a compiler warning about it :/ -
@linux-colonel As in if I had a class:
MyClass<T>
I can't define an array of it:
MyClass<Integer>[]
@Makenshi I'd like to but it's Swing that requires an array as a parameter... I managed to find another way in the end though. -
@Jamoyjamie
Ahh gotcha. I assume you just did something like this instead?
public class MyIntegerClass extends MyClass<Integer>{}
MyIntegerClass[] arr = new MyIntegerClass[] {} -
@linux-colonel Actually in the end I managed to use a different constructor which did a similar job to what I needed :) still frustrating though!
-
The only real reason to hate Java is that there is no easy way around garbage collection when you need it. Otherwise it's a great language and the JVM is a great platform. If you hate the boilerplate, use Kotlin.
Related Rants
Screw Java.
undefined
java