The Artima Developer Community
Sponsored Link

Java Buzz Forum
A Java bug worthy of your vote

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
Nick Lothian

Posts: 397
Nickname: nicklothia
Registered: Jun, 2003

Nick Lothian is Java Developer & Team Leader
A Java bug worthy of your vote Posted: Aug 13, 2003 3:55 AM
Reply to this message Reply

This post originated from an RSS feed registered with Java Buzz by Nick Lothian.
Original Post: A Java bug worthy of your vote
Feed Title: BadMagicNumber
Feed URL: http://feeds.feedburner.com/Badmagicnumber
Feed Description: Java, Development and Me
Latest Java Buzz Posts
Latest Java Buzz Posts by Nick Lothian
Latest Posts From BadMagicNumber

Advertisement

At work we've been stung (fortunately on an internal system only) by a JDK bug which we weren't aware of. Did you know that under JDK1.4.1 once 2036 files are open any subsequent opens will delete the file that was supposed to be opened? Obviously this is NOT WHAT WAS SUPPOSED TO HAPPEN!! Note that the file that gets deleted could be a class, a jar or something like web.xml - it gets deleted! Tracking down THAT bug was NOT FUN. We found it in a web-app. It was behaving weirdly, so I attempted to restart it, which meant the web.xml was re-read, and deleted!

See http://developer.java.sun.com/developer/bugParade/bugs/4779905.html for the gory details and a test case.

Even if you are careful with making sure you close your files, you can never be sure about 3rd party components.

Fortunately, experimentation has show that it seems to be fixed in JDK1.4.2 - although the bug isn't marked as closed. Nice to see Sun keeps track of what bugs they fix...

Read: A Java bug worthy of your vote

Topic: Don't generate code if you can't automate the process Previous Topic   Next Topic Topic: Tomcat 4.1.27 + Apache 2.0.47 on Red Hat 9

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use