Puzzling javadoc behavior

Discussion in 'Java' started by rodrigobraz.removethis@gmail.com, Oct 18, 2007.

  1. Guest

    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
     
    , Oct 18, 2007
    #1
    1. Advertisements

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. GaryM
    Replies:
    0
    Views:
    365
    GaryM
    Dec 21, 2003
  2. GIMME
    Replies:
    1
    Views:
    1,076
    Chris Smith
    Apr 15, 2004
  3. James
    Replies:
    5
    Views:
    576
    Eric Sosman
    Aug 31, 2004
  4. Roedy Green

    Puzzling warning message

    Roedy Green, Jul 31, 2005, in forum: Java
    Replies:
    20
    Views:
    1,107
    Thomas Hawtin
    Aug 5, 2005
  5. Replies:
    3
    Views:
    414
  6. Jav
    Replies:
    3
    Views:
    270
  7. Replies:
    5
    Views:
    305
  8. VK
    Replies:
    4
    Views:
    268
Loading...