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

Assertion Failure on sun.tools.java.CompilerError: illegal class modifiers

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P4 P4
    • None
    • 1.2.0
    • tools
    • generic, x86, sparc
    • generic, solaris_2.6, windows_nt



      Name: diC59631 Date: 08/20/98


      Solaris 2.6 on JDK 1.2B4
      Is this correct or not.
      It works on JDk 1.1.4/5/6

      %javac *.java
      sun.tools.java.CompilerError: illegal class modifiers
              at sun.tools.javac.SourceClass.assertModifiers(Compiled Code)
              at sun.tools.javac.SourceClass.compileClass(Compiled Code)
              at sun.tools.javac.SourceClass.compile(Compiled Code)
              at sun.tools.javac.Main.compile(Compiled Code)
              at sun.tools.javac.Main.main(Compiled Code)
      error: An error has occurred in the compiler; please file a bug report (http://java.sun.com/cgi-bin/bugreport.cgi).

      // ExecCmdBase.java
       
      import java.io.*;
      import java.util.*;
       
      /**
       * Base Interface for ExecCmds
       */
      public interface ExecCmdBase
      {
         // Constants
         Status INVALID = new Status(0);
         Status INACTIVE = new Status(1);
         Status RUNNING = new Status(2);
         Status COMPLETED = new Status(3);
         Status ERROR = new Status(4);
         final class Status {
            private final int status;
            private Status(int i) {
               status = i;
            }
         }
       
         // Cmd Public Interface
         String getResult() throws IOException ;
         void setResult(String string);
         void setResultBufferSize(int size) throws IOException;
         int getResultBufferSize();
         ExecCmdBase.Status getStatus();
         void setStatus(ExecCmdBase.Status status);
         ExecCmdBase[] getCmds();
         void notifyCmdListener();
         void addCmdListener(ExecCmdListener l);
      }

      // ExecCmdListener.java
       
      /**
       * Provides ExecCmd Listener Interface
       */
      public interface ExecCmdListener
      {
         public void notified(ExecCmdBase execmd);
      }
      (Review ID: 37355)
      ======================================================================

            wmaddoxsunw William Maddox (Inactive)
            dindrigo Daniel Indrigo (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: