Jonas N
Jonas N

Reputation: 1777

Non-essential imports compiled by javac

Just verified that javac compiles every reference or import that it sees, such as JavaDoc @link references.

Can this be turned off with an argument?

And/or, can a less eager compile be implemented using the javax compiler API?

(I could blank out those references before feeding the source into the compiler, I guess, but I hope there are simpler ways.)

Upvotes: 1

Views: 40

Answers (1)

Stephan Herrmann
Stephan Herrmann

Reputation: 8178

ecj lets you choose whether or not javadoc tags should be analysed, the option is -enableJavadoc.

I don't know whether javac has a similar option.

Upvotes: 1

Related Questions