create javadoc for java files under development
hi
i would like to know if there is any method by which i can generate javadoc of java files that are in the process of development.
What i do is first create a skeleton java file with just the methods defined along with their javadoc comments and then start implementing the methods.
I do a daily build of javadoc and hence its not necessary that a coding of a particular method is completed before javadoc is run.
sibi
[453 byte] By [
sibijva] at [2007-9-28 14:55:33]

it dint work for me. i have a sample code
public class HelloWorld
{
/**
* Sample Hello world. Note the 3rd System.out.print is missing a ";" and hence
* should cause a compile error and Javadoc must have no problem running.
*/
public static void main()
{
System.out.print("H");
System.out.print("E");
System.out.print("L")//Note ";" is missing
System.out.print("LO WORLD");
System.out.println();
}
}
Note the 3rd System.out.print has a ";"missing and must generate an error when compiling but the javadoc must run properly. Note the method main() is fully defined with parameters and return types.
Pls correct me if i am wrong.
sibi
You're right, this throws an error due to the missing semi-colon.
Javadoc isn't as rigorous as the compiler, but does seem to check for
some syntax errors. There is no way to prevent or loosen this checking.
C:> javadoc HelloWorld.java
Loading source file HelloWorld.java...
HelloWorld.java:11: ';' expected
System.out.print("L")//Note ";" is missing
^
1 error
-Doug Kramer
javadoc team