• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

javadoc on .class?

 
Ranch Hand
Posts: 56
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 15304
6
Mac OS X IntelliJ IDE Chrome
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Sheriff
Posts: 7023
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 815
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
mmm... barley
 
Warren Bell
Ranch Hand
Posts: 56
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
mmm...wheat, mmm...rye, mmm...oats, mmm...
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic