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
-
@-Tor yes, but it is Java internal. That doesn't help me
@SanitizedOutput the reason I did this Text box was to show there will be random characters after encoding -
Time to try out JavaFX or Swing and create a bug report to give to your teacher as the excuse :)
-
@Unoriginal it's kinda like the iPhone of programming languages. It's not inherently bad, in fact it's actually really good, and can do a lot of great things.
There are just so many alternatives, with better support, more features, and easier to use. And you can't even argue about cross platform any more, since most backend technologies can be run on anything.
But the main reason I don't like Java, is that it's going to be commercialized from next year. No more free development in Java. You need to have a license to deploy -
@-Tor okay sorry, I had misunderstood it then. However my other points still stand I believe
Related Rants
-
Cyborg15A guy and a girl are in a Java seminar. Afterward, the guy approaches the girl and asks, "Hey gurrl, can I ge...
-
tahnik17Finally I found a webpage related to my bug. The page is from 2004. *keeps reading* "Yes, yes! This is exac...
-
retard36Recently made an account on Instagram. Uploaded two pics Deleted both of them Now I've -2 posts
OKAY WHAT THE FUCK JAVA.
At school we were assigned the task to do Huffman's algorithm. Since I am way ahead of all the others, I made a GUI for that. (Btw, we use BlueJ for Java, it's just painful)
Now... I made a JTextField to put the output, which would be any character from 0x0 to 0xFFFF, into it.
Apparently, there is a bug in the setText method, which throws random NullPointerExceptions right into your face if you give it those Unicode characters.
So I looked it up:
It was a Bug, in JDK 1.6.something, where putting a 0xFFFF together with a 0x10000 would cause this. Now you may think, do we still have 1.6? No, we have 1.8 v171, WHY THE FUCK DOES THIS SHIT GIVE ME A NPE?! THE WORST PART IS I CAN'T DO ANYTHING ABOUT IT!
AND IT HAS THE WORST UNDEFINED BEHAVIOR:
1. NPE, nothing else happens
2. The Text box just gets invisible, but the border stays visible + NPE
3. The box completely disappears + NPE
Try-catching it doesn't do anything, everytime I fill the box with text, one of those options happens, and the box was never to be seen again! NOT EVEN CREATING A NEW TEXT BOX AND ADDING IT TO MY WINDOW WORKS.
rant
bug
java