Wednesday, 17 October 2007

First JDK bug EVER!

Wow, I have never come across a bug in java before. Today I hit a nice one to do with long file names. Good thing it was fixed like a year ago today. Weird thing is that I wasn't using the version that was a "know issue". Ah well, upgrading worked. ;-)

3 comments:

  1. Did I read that right? Java only supports file paths of 260 characters?
    Let's look at an example file path
    c:\documents and settings\Administrator\My Documents\My Received Files\Image that looks really funny.jpg
    That's 104 characters. While it doesn't go beyond 260 characters, for someone like me who organizes stuff in many directories and subdirectories, I'm sure that it wouldn't be too hard to hit this limit. The bug isn't that the limit dropped down to 248, but that it was 260 characters in the first place.

    ReplyDelete
  2. It's marked as a "Regression" so I'm sure at one point it did. When I had a file with a really long path I tried to copy to to a different location in windows explorer and that didn't work either. It might not have been just a java thing.
    Either way, updated the JDK and it's all good. ;-)

    ReplyDelete
  3. I was going to send a long, descriptive, and wrong answer to this post. Instead...
    I must send a poke Kibee's way to ask why a self-described "Linux fanboy" is logging into Windows as Administrator. ;-)

    ReplyDelete