Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8338675 javac shouldn't silently change .jar files on the classpath
  3. JDK-8353454

Release Note: JAR files on classpath are never modified by javac

XMLWordPrintable

    • Icon: Sub-task Sub-task
    • Resolution: Delivered
    • Icon: P4 P4
    • 25
    • 25
    • tools

      Under some conditions, javac could have modified jar or zip files places on the classpath, by writing classfile(s) to them.

      The specific conditions are:
      - no output directory specified (i.e. no `-d` option)
      - no `-sourcepath` specified
      - the jar or zip file on the classpath contains source file(s), which are compiled implicitly

      This is no longer the case. Classfiles will never be written to jar or zip files, and those that would be written into the jar or zip file will be placed to the current working directory. This mimics the JDK 8 behavior.

            dabeaumo David Beaumont
            dabeaumo David Beaumont
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: