Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-4094636

eou: javac -depend sometimes recompiles unnecessarily

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Fix
    • Icon: P5 P5
    • None
    • 1.1, 1.1.5
    • tools
    • generic, x86
    • generic, solaris_2.6



      Name: joT67522 Date: 11/21/97


      javac -depend sometimes recompiles an imported
      class even though .class file is newer than
      .java file.

      What does the word "normally" mean in the
      documentation for javac, i.e. in

      -depend
                    This option makes the compiler consider recompiling class files which are referenced
                    from other class files. Normally, it only recompiles missing or out-of-date class files
                    that are referred to from source code.

      Taken from:
      jdk1.1/docs/tooldocs/solaris/javac.html


      What we'd like to know is: in what circumstances does -depend
      recompile a class file? We had assumed that it would only recompile
      if the .class file was older than the corresponding .java file, but
      this is not the case. The existing documentation on -depend is
      unclear and inadequate.

      John Williams.
      (Review ID: 19795)
      ======================================================================

            dstoutamsunw David Stoutamire (Inactive)
            johsunw Joon Oh (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: