Share

Jalopy Java Source Code Formatter

Tracker: Bugs

1 @throws generated incorrctly - ID: 594738
Last Update: Settings changed ( marcohu )

Jalopy generates javadoc @throws tag for an exception
that is not thrown outside scope of the method. Sample code

public class ExTest {
public static void main(String[] args) {
try {
if (args == null) {
throw new Exception("Parameter args is null.");
}
} catch (Exception ex) {
ex.printStackTrace();
System.exit(1);
}

System.out.println("Done.");
}
}

On the first run Jalopy generates following javadoc for
the main() method:
/**
* DOCUMENT ME!
*
* @param args DOCUMENT ME!
*/

On the second run an erroneous tag @throws is generated:
/**
* DOCUMENT ME!
*
* @param args DOCUMENT ME!
* @throws Exception DOCUMENT ME!
*/


I am running JBuilder 6 Professional and Jalopy plugin
version 0.7.3.


Jarek Sacha ( jsacha ) - 2002-08-13 19:22

1

Closed

Fixed

Marco Hunsicker

None

None

Public


Comment ( 1 )

Date: 2002-08-18 22:39
Sender: marcohuProject Admin

Logged In: YES
user_id=44430

Ops.


Attached File

No Files Currently Attached

Changes ( 5 )

Field Old Value Date By
status_id Open 2002-11-13 00:02 marcohu
close_date - 2002-11-13 00:02 marcohu
resolution_id None 2002-09-15 21:56 marcohu
priority 5 2002-08-21 17:41 marcohu
assigned_to nobody 2002-08-18 22:39 marcohu