Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

How do I generate documentation for packages that contain a package.html file but no java files?

0
Posted

How do I generate documentation for packages that contain a package.html file but no java files?

0

Technically, that’s currently not possible — however, there is a practical workaround, where you include a package-private “placeholder” class in that package. So long as you don’t use either the -private or -package option, the class will never appear in your documentation. /** * Exists only to enable package.html to be included in javadoc */ class Placeholder { } This is being tracked by Bug 4492654 We hope to remove this restriction.

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.