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

javac reports missing class file, but exits successfully and generates incorrect class

    Details

    • Type: Bug
    • Status: Open
    • Priority: P3
    • Resolution: Unresolved
    • Affects Version/s: 8
    • Fix Version/s: tbd_minor
    • Component/s: tools

      Description

      Using the attached javac-compiler-args.txt,

      bash-4.1$ javac @java-compiler-args.txt
      /scratch/jgish/weblogic/dev/src1222/mod/core/utilities/time/src/main/java/weblogic/time/t3client/internal/TimeProxy.java:13: error: cannot access Manufacturable
      final public class TimeProxy implements T3Executable {
                   ^
        class file for weblogic.common.internal.Manufacturable not found
      Note: Some input files use or override a deprecated API.
      Note: Recompile with -Xlint:deprecation for details.
      Note: Some input files use unchecked or unsafe operations.
      Note: Recompile with -Xlint:unchecked for details.
      bash-4.1$

      bash-4.1$ javap /scratch/jgish/weblogic/src1222_build/work/core/utilities/time/classes/main/weblogic/time/t3client/internal/TimeProxy.class
      Compiled from "TimeProxy.java"
      public final class weblogic.time.t3client.internal.TimeProxy {
        public void initialize();
        public void destroy();
        public java.lang.Object execute(weblogic.t3.srvr.ExecutionContext, java.lang.Object) throws weblogic.common.T3Exception;
      }
      bash-4.1$

      Adding the missing dependency yields:
      bash-4.1$ javac @java-compiler-args.txt
      Note: Some input files use or override a deprecated API.
      Note: Recompile with -Xlint:deprecation for details.
      Note: Some input files use unchecked or unsafe operations.
      Note: Recompile with -Xlint:unchecked for details.
      bash-4.1$

      and

      bash-4.1$ javap /scratch/jgish/weblogic/src1222_build/work/core/utilities/time/classes/main/weblogic/time/t3client/internal/TimeProxy.class
      Compiled from "TimeProxy.java"
      public final class weblogic.time.t3client.internal.TimeProxy implements weblogic.common.T3Executable {
        public weblogic.time.t3client.internal.TimeProxy();
        public void initialize();
        public void destroy();
        public java.lang.Object execute(weblogic.t3.srvr.ExecutionContext, java.lang.Object) throws weblogic.common.T3Exception;
      }
      bash-4.1$

        Attachments

        1. 8145208.zip
          1 kB
        2. java-compiler-args.txt
          5 kB
        3. TimeProxy.java
          3 kB

          Activity

            People

            • Assignee:
              jlahoda Jan Lahoda
              Reporter:
              jgish Jim Gish
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated: