File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Features new in Java 7 and the fly likes Worst Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Features new in Java 7
Bookmark "Worst "features" (bugs) in Java 7" Watch "Worst "features" (bugs) in Java 7" New topic

Worst "features" (bugs) in Java 7

john price
Ranch Hand

Joined: Feb 24, 2011
Posts: 495

Some bugs in Java 7 that programmers' programming should avoid (Please share)...
I did find this one web site that had a bunch of bugs. I can't find it now. I think this would be useful to Java 7 programmers so they know what to avoid until they are fixed...

John Price

“Don’t worry if it doesn’t work right. If everything did, you’d be out of a job.” (Mosher's Law of Software Engineering)
“If debugging is the process of removing bugs, then programming must be the process of putting them in.” (Edsger Dijkstra)
Wouter Oet
Saloon Keeper

Joined: Oct 25, 2008
Posts: 2700

A feature isn't normally a bug and visa versa.

There is indeed a bug caused by aggressive optimization done by the jvm. However in my opinion this shouldn't be a reason for not using Java SE 7. The fault only appears in certain situations and can be totally avoided by setting a flag.

"Any fool can write code that a computer can understand. Good programmers write code that humans can understand." --- Martin Fowler
Please correct my English.
john price
Ranch Hand

Joined: Feb 24, 2011
Posts: 495

I do know that features aren't bugs and vice versa. I just did not put quotes around the word "features". I do know a little of the optimization bug. It has something to do with loops. I wan't specifically talking about that one. I was talking about them all in general. Like, including that one, but not specifically that one bug. I found a website that had like 20 bugs or something found in Java. They were explained and it looked legit. If you can think of any others, that would be appreciated. If you could give an example and a fix, that would be even better. If you could give an example of the above optimization bug and how to fix it, that would be great. By "example", I mean code in relevant bugs.

John Price
Rob Spoor

Joined: Oct 27, 2005
Posts: 20276

Do you have a link to that website?

How To Ask Questions How To Answer Questions
I agree. Here's the link:
subject: Worst "features" (bugs) in Java 7
It's not a secret anymore!