Thread View: borland.public.jbuilder.java.language
4 messages
4 total messages
Started by Carsten Hammer
Sat, 18 Jun 2005 10:57
Bug in Java formatter
Author: Carsten Hammer
Date: Sat, 18 Jun 2005 10:57
Date: Sat, 18 Jun 2005 10:57
37 lines
1874 bytes
1874 bytes
Hi,
JBuilder 2005 "formats" this sequence:
if(true)
try
{
i++;
}
finally
{
System.out.println(i);
}
like that
if (true) {
try {
i++;
}
}
finally {
System.out.println(i);
}
if I choose "format all". This is obviously broken code.
And please dont care about if this code can make sense. Of course I
experienced this problem with some more sensible but somewhat lengthy
code that has not been written by me. (JB 11.0.320.0 Update 4)
As my software warranty contract ended I dont have the right to get bugs
fixed any longer and my access to QC does not work it seems.
Can anybody confirm that this bug is still in the newest available JBuilder?
Best regards,
Carsten
Re: Bug in Java formatter
Author: Shankar Unni
Date: Mon, 20 Jun 2005 16:53
Date: Mon, 20 Jun 2005 16:53
12 lines
1451 bytes
1451 bytes
Carsten Hammer wrote: > JBuilder 2005 "formats" this sequence: > [...] > like that > [...] > if I choose "format all". This is obviously broken code. You'll need to post your formatting settings. Also, do you have all the latest Updates installed? There have been some editing (formatting) fixes in those updates..
Re: Bug in Java formatter
Author: Carsten Hammer
Date: Tue, 21 Jun 2005 21:16
Date: Tue, 21 Jun 2005 21:16
25 lines
1672 bytes
1672 bytes
Shankar Unni wrote: > Carsten Hammer wrote: > >> JBuilder 2005 "formats" this sequence: >> [...] >> like that >> [...] >> if I choose "format all". This is obviously broken code. > > > You'll need to post your formatting settings. > I never touched the default settings. However I am not aware of any "destroy my code" option :) > Also, do you have all the latest Updates installed? There have been some > editing (formatting) fixes in those updates.. As I said: (JB 11.0.320.0 Update 4) Other Updates than this I do not have access to. Best regards, Carsten
Re: Bug in Java formatter
Author: Shankar Unni
Date: Wed, 22 Jun 2005 00:16
Date: Wed, 22 Jun 2005 00:16
2 lines
1221 bytes
1221 bytes
Whoops - sorry, didn't see your reply in the newsgroup until now. Please ignore my last homily, and apologies.
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads