Puzzling javadoc behavior

  • Thread starter rodrigobraz.removethis
  • Start date
R

rodrigobraz.removethis

I am using javadoc and found some puzzling behavior. Can anyone please
explain it to me?

I have the following directories

mypackage
temp/mypackage

and files

temp/mypackage/SomeClass.java
mypackage/SomeOtherClass.java, which contains the illegal character
\35, on purpose. The reason for that will be soon clear.

javadoc -d docs temp/mypackage/SomeClass.java

Gives me the message

..\mypackage\SomeOtherClass.java:3: illegal character: \35

My question is: why does javadoc even look at directory mypackage at
all? It was told to process temp/mypackage/SomeClass.java only. In
other words, why are files in mypackage relevant at all?

In fact, if I rename mypackage to something else, everything works as
expected.

Clearly, javadoc is assuming there may be a source code tree with the
processed packages from the current directory, but was is the purpose
of such an assumption?

Any help appreciated. Thank you.

Rodrigo
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,744
Messages
2,569,481
Members
44,900
Latest member
Nell636132

Latest Threads

Top