ConstructorDoc always shows a non default constructor

If the source file has no explicite constructor, the ConstructorDocs of ClassDoc always hold a non default constructor as it seems. If there is an explicite coded constructor, the position of the constructor points to the right position in the file. If there is no constructor in the source, it points to the class declaration. Is this a javadoc bug or has anybody seen this problem before?

[397 byte] By [tarzan68a] at [2007-11-26 14:55:18]
# 1
Every class has a default no-arg constructor if you do not explictly define one.Hope this helps.
kirkpthompsona at 2007-7-8 8:43:49 > top of Java-index,Developer Tools,Debugging and Profiling Tool APIs...
# 2
No, it does not help, I knew that already.The problem is I put the javadoc information into another "system" and therefore I only want to mention explicite constructors, not the implicite constructors.
tarzan68a at 2007-7-8 8:43:49 > top of Java-index,Developer Tools,Debugging and Profiling Tool APIs...
# 3

I believe, all you need is to check the method: MemberDoc.isSynthetic()

It is inherited by ConstructorDoc from the com.sun.javadoc.MemberDoc interface.

This method is provided specifically to know (and filter out when needed) if the member is implicitly synthesized by the compiler.

Regards,

Leonid Rudy

http://www.docflex.com

leonid_rudya at 2007-7-8 8:43:49 > top of Java-index,Developer Tools,Debugging and Profiling Tool APIs...