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

Classfile/sourcefile search anomaly when compiling platform classes

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Fix
    • Icon: P5 P5
    • None
    • 1.3.0
    • tools
    • generic
    • generic

      When resolving references to classes that must be loaded on demand (i.e., are
      referenced but not specified on the compiler command line), the compiler
      searches both the bootclasspath and the classpath/sourcepath. If a source
      file is found on the sourcepath, but a more recent class file is found on
      the bootclasspath, the compiler will load the class file. It should recompile
      the source, unless a class file is found on the classpath. The bootclasspath
      refers to the platform one is compiling against, not the application being
      compiled, and if we are compiling platform classes, these classes should be
      viewed by the compiler as the application. In general, a classfile should
      be assumed to correspond to a source file discovered on the sourcepath only
      when it is found on the classpath, not on the bootclasspath.

      william.maddox@Eng 2000-06-28

            gafter Neal Gafter (Inactive)
            wmaddoxsunw William Maddox (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: