Share

Jalopy Java Source Code Formatter

Tracker: Bugs

1 Removes misplaced doccomments - ID: 604072
Last Update: Settings changed ( marcohu )

Jalopy 1.0b8 removes doccomments at the end of the
source file. I think, instead it should offer options to a)
leave it as is b) convert to normal multiline comment.

I appended the javadoc section of my style sheet.


<javadoc>
<addClass>0</addClass>
<checkTags>false</checkTags>
<parseComments>false</parseComments>
<templates>
<methods>
<exception> * @throws
$exceptionType$ DOCUMENT ME!</exception>
<param> * @param $paramType$
DOCUMENT ME!</param>
<bottom> */</bottom>
<return> * @return DOCUMENT
ME!</return>
<top>/**| * DOCUMENT ME!</top>
</methods>
</templates>
<checkInnerClass>false</checkInnerClass>
<remove>false</remove>
<addCtor>0</addCtor>
<addField>0</addField>
<addMethod>0</addMethod>
<tags>
<standard />
<in-line />
</tags>
</javadoc>


Ralf Wiebicke ( rw7 ) - 2002-09-03 17:18

1

Closed

Fixed

Marco Hunsicker

None

v1.0 (example)

Public


Comments ( 4 )

Date: 2002-09-13 18:23
Sender: marcohuProject Admin

Logged In: YES
user_id=44430

Ok, I've sorted it out. With the next version, Jalopy will again
*complaign* if it encounters Javadoc comments as an endline
comment. Future version might bring an auto-conversion or
will treat such comments as multi-line comments. I'm not yet
sure.


Date: 2002-09-04 15:35
Sender: marcohuProject Admin

Logged In: YES
user_id=44430

Thanks for your help. I'll look into it.


Date: 2002-09-04 09:29
Sender: rw7

Logged In: YES
user_id=33170

I hope, attaching the files did work. Jalopy throws out the
dochcomment at the end of the file:

rw7@winston:~/src> diff SomeClass.java*
4,5c4,6
<
<
---
> /**
> * Misplaced Doccomment
> */



Date: 2002-09-03 18:52
Sender: marcohuProject Admin

Logged In: YES
user_id=44430

Could you please ATTACH a sample file and your
preferences?

Thanks.


Attached Files ( 4 )

Filename Description Download
SomeClass.java.bak This is the original file with a misplaced doccomment Download
SomeClass.java this is the formmatted file without the doccomment Download
jalopy.xml my stylesheet Download
build.xml the ant script used to start jalopy Download

Changes ( 10 )

Field Old Value Date By
close_date - 2002-11-13 00:02 marcohu
status_id Open 2002-11-13 00:02 marcohu
resolution_id None 2002-09-15 21:56 marcohu
priority 5 2002-09-13 18:23 marcohu
File Added 30401: build.xml 2002-09-04 09:27 rw7
File Added 30400: jalopy.xml 2002-09-04 09:26 rw7
File Added 30399: SomeClass.java 2002-09-04 09:24 rw7
artifact_group_id None 2002-09-04 09:24 rw7
File Added 30398: SomeClass.java.bak 2002-09-04 09:22 rw7
assigned_to nobody 2002-09-03 18:52 marcohu