• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

javadoc on .class?

 
Warren Bell
Ranch Hand
Posts: 56
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I recently had someone tell me that you can run javadoc on compiled classes. I thought you had to have the source code? Am I missing something? I believe I know the answer, but can someone clarify this for me.

Thanks,

Warren
 
Gregg Bolinger
GenRocket Founder
Ranch Hand
Posts: 15302
6
Chrome IntelliJ IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Well, I just tried it and javadoc complained because it couldn't find any source code. So my first instinct is to say no, you can't run javadoc on .class files.

But I am looking into it further because I am not 100%. Maybe there is a switch or some secret way of doing it.
 
Dirk Schreckmann
Sheriff
Posts: 7023
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I see nothing in the javadoc documentation that indicates it can produce documentation from compiled class files. The description of the tool clearly indicates that it parses source files for documentation.

If it could create documentation from compiled class files, such documentation would be very sparse, including merely a listing of classes and interfaces, their relationships, and listings of the methods and fields defined in the classes and interfaces. Remember, of course, that comments (documentation) in the source files are not included in the compiled class files.
[ May 17, 2004: Message edited by: Dirk Schreckmann ]
 
Warren Bell
Ranch Hand
Posts: 56
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I didn't think you could. I have decompied classes before, and its a mess. You can barley figure out what is going on.

Thanks,

Warren
 
Nick George
Ranch Hand
Posts: 815
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
mmm... barley
 
Warren Bell
Ranch Hand
Posts: 56
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
mmm...wheat, mmm...rye, mmm...oats, mmm...
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic