 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
Derek Clarkson Guest
|
Posted: Fri Apr 16, 2004 4:21 am Post subject: Java Formatter JB9 & X Bug |
|
|
Hi all,
I first noticed this in V9 and it is still present in VX. I've noticed that in java code which has javadoc comments on the line above method declarations, when you format the code using the Format All command, the formatter will decide that some of the methods are actually part of the javadoc comments and start shifting the code word by word into the comments block. This keeps happening every time your format until it breaks the code.
I experimented with this and found that it is highly reproduceable, even though the formatter seems to be random about which methods it decides to mutilate. Shift the order of methods and it will start destroying different ones. I cannot figure out what is triggering it, but this is a serious bug.
This has been reproduced on a Linux PC using JB 9 and a Windows XP PC using JBX.
Does anyone know what is causing it ?
ciao
Derek.
|
|
| Back to top |
|
 |
Derek Clarkson Guest
|
Posted: Fri Apr 16, 2004 4:32 am Post subject: Re: Java Formatter JB9 & X Bug |
|
|
Ahh, just found the answer. JB will do this if the proceding
declaration does not have a scope identifier at the front.
Go Figure that!
ciao
D
"Derek Clarkson" <derek.clarkson (AT) lonelyplanet (DOT) com.au> wrote:
| Quote: |
Hi all,
I first noticed this in V9 and it is still present in VX. I've noticed that in java code which has javadoc comments on the line above method declarations, when you format the code using the Format All command, the formatter will decide that some of the methods are actually part of the javadoc comments and start shifting the code word by word into the comments block. This keeps happening every time your format until it breaks the code.
I experimented with this and found that it is highly reproduceable, even though the formatter seems to be random about which methods it decides to mutilate. Shift the order of methods and it will start destroying different ones. I cannot figure out what is triggering it, but this is a serious bug.
This has been reproduced on a Linux PC using JB 9 and a Windows XP PC using JBX.
Does anyone know what is causing it ?
ciao
Derek.
|
|
|
| Back to top |
|
 |
Lori M Olson (TeamB) Guest
|
Posted: Fri Apr 16, 2004 5:16 am Post subject: Re: Java Formatter JB9 & X Bug |
|
|
Derek Clarkson wrote:
| Quote: | Hi all,
I first noticed this in V9 and it is still present in VX. I've
noticed that in java code which has javadoc comments on the line
above method declarations, when you format the code using the Format
All command, the formatter will decide that some of the methods are
actually part of the javadoc comments and start shifting the code
word by word into the comments block. This keeps happening every time
your format until it breaks the code.
I experimented with this and found that it is highly reproduceable,
even though the formatter seems to be random about which methods it
decides to mutilate. Shift the order of methods and it will start
destroying different ones. I cannot figure out what is triggering it,
but this is a serious bug.
This has been reproduced on a Linux PC using JB 9 and a Windows XP PC
using JBX.
Does anyone know what is causing it ?
ciao Derek.
|
If you can reproduce this, please check Quality Central to see if it has
been reported, and if not, please report it.
--
Regards,
Lori Olson (TeamB)
------------
Save yourself, and everyone else, some time and search the
newsgroups and the FAQ-O-Matic before posting your next
question.
Google Advanced Newsgroup Search
http://www.google.ca/advanced_group_search
Other Newsgroup Searches:
http://www.borland.com/newsgroups/ngsearch.html
Joi Ellis's FAQ-O-Matic:
http://www.visi.com/~gyles19/fom-serve/cache/1.html
|
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|