Bug 54673

Summary: StringBuffer.append don't throws IOException!
Product: [Eclipse Project] JDT Reporter: Patrick Crepeault <p.crepeault>
Component: CoreAssignee: JDT-Core-Inbox <jdt-core-inbox>
Status: RESOLVED DUPLICATE QA Contact:
Severity: blocker    
Priority: P3    
Version: 3.0   
Target Milestone: 3.0 M8   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description Patrick Crepeault CLA 2004-03-12 12:01:41 EST
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.
Comment 1 Philipe Mulet CLA 2004-03-12 17:12:41 EST
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 ?
Comment 2 Patrick Crepeault CLA 2004-03-14 10:43:00 EST
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.
Comment 3 Philipe Mulet CLA 2004-03-15 12:23:58 EST
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 ***