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

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

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P3
    • Resolution: Cannot Reproduce
    • Affects Version/s: 1.3.0
    • Fix Version/s: None
    • Component/s: other-libs
    • Labels:
    • Subcomponent:
    • CPU:
      x86
    • OS:
      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

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

              Dates

              • Created:
                Updated:
                Resolved:
                Imported:
                Indexed: