Community
Participate
Working Groups
I have JDK1.5.0 on some computer as well as other version of the JDK. In 1.5.0, I receive a strange Unhandled exception type IOException even if the the javadoc said that append don't throw. And yes, before you ask, I need my code to compile in 1.5.0 as well as in 1.4.2.
Then I suggest you compile it against 1.4.2, then it will run against 1.5.0 which has to be backward compatible. Which build of Eclipse are you using ?
I could use 1.4.2, but I would rather use 1.5.0 (as I have just reinstall my computer and don't want to have a to mess with 2 JDK). As for the build of Eclipse, I am using Build id: 200402122000.
Take a more recent build, we have addressed such issues. Now remember that we don't encourage to compile against 1.5 until we provide a 1.5 compiler. Javac 1.5 refuses to compile against 1.5 libraries, we tolerate them as a courtesy, but there are subtleties in them which will be tricky to handle. Furthermore, numerous new types got added, so there is no assumption that code compiled against 1.5 will run happily against 1.4. But this is your problem afterall... *** This bug has been marked as a duplicate of 51353 ***