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

throw clause in org/omg/stub/my/package/_MyClass_Stub.java ambiguous

    XMLWordPrintable

Details

    • Bug
    • Resolution: Cannot Reproduce
    • P3
    • None
    • 1.3.0
    • other-libs
    • x86
    • windows_nt

    Description



      Name: krC82822 Date: 05/20/2001


      java version "1.3.0_02"
      Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.0_02)
      Java HotSpot(TM) Client VM (build 1.3.0_02, mixed mode)

      The gerated throw clauses for the implemented business methods of the remote
      interface can be ambiguous. This is the case, when the complete Exceptions are
      specified in the throw clause of the business methods in the remote interface
      and if the package of the thrown exception is important, because there are
      several with the same name but different package.

      Example:

      Remote interface:

      import java.rmi.RemoteException;
      [...]
         public void start() throws javax.oss.order.IllegalStateException,
      javax.oss.IllegalArgumentException, RemoteException;


      Generated Stub:
      import java.rmi.RemoteException;
      import javax.oss.IllegalArgumentException;
      import
          public void start() throws IllegalStateException, IllegalArgumentException,
      RemoteException {

      Result:

      IllegalStateException is ambiguous (see java.sun.com/products/oss/
      ServicaActivation for IllegalStateException / IllegalArgumentException definition)

      Class <<ambiguous>>IllegalStateException not found in interface
      javax.oss.order.OrderManager.
          public void startOrder() throws IllegalStateException,
      IllegalArgumentException, RemoteException {
      (Review ID: 124566)
      ======================================================================

      Attachments

        Activity

          People

            sbauersunw Stefan Bauer (Inactive)
            kryansunw Kevin Ryan (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: