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

rmic: error: An error has occurred in the compiler;

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P3 P3
    • None
    • 1.1.2
    • core-libs
    • x86
    • windows_nt



      Name: rlT66838 Date: 07/22/97


      This is the file HelloImpl

      import java.rmi.*;
      import java.rmi.server.*;
      import java.net.*;

      public class HelloImpl extends UnicastRemoteObject implements Hello {

        public HelloImpl() throws RemoteException {
          super();
        }
          
        public String sayHello() throws RemoteException {
          return "Hello, World!";
        }

        public static void main(String args[]) {

          try {
            HelloImpl h = new HelloImpl();
            Naming.rebind("hello", h);
            System.out.println("Hello Server ready.");
          }
           catch (RemoteException re) {
            System.out.println("Exception in HelloImpl.main: " + re);
          }
          catch (MalformedURLException e) {
            System.out.println("MalformedURLException in HelloImpl.main: " + e);
          }

        }

      }
      ------------------------------------------------
      H:\VSSProjects\Java Test\RMI\HelloWorld>rmic "H:\VSSProjects\Java Test\RMI\Hello
      World\HelloImpl.java"
      sun.tools.java.CompilerError: mangle H:\VSSProjects\Java Test\RMI\HelloWorld\Hel
      loImpl$java
              at sun.tools.java.Type.mangleInnerType(Type.java:205)
              at sun.tools.java.Type.tClass(Type.java:173)
              at sun.tools.java.ClassDeclaration.<init>(ClassDeclaration.java:59)
              at sun.rmi.rmic.Main.doCompile(Main.java:243)
              at sun.rmi.rmic.Main.compile(Main.java:121)
              at sun.rmi.rmic.Main.main(Main.java:404)
      error: An error has occurred in the compiler; please file a bug report (http://j
      ava.sun.com/cgi-bin/bugreport.cgi).
      1 error
      ------------------------
      company - Fraunhofer ISST , email - ###@###.###
      ======================================================================

            Unassigned Unassigned
            rlewis Roger Lewis (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: