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.
Marco Hunsicker
None
None
Public
|
Date: 2002-08-18 22:39 Logged In: YES |
Copyright © 2010 Geeknet, Inc. All rights reserved. Terms of Use