Print this page


Split Close
Expand all
Collapse all
          --- old/src/share/classes/sun/rmi/server/ActivatableRef.java
          +++ new/src/share/classes/sun/rmi/server/ActivatableRef.java
↓ open down ↓ 72 lines elided ↑ open up ↑
  73   73       * specified in the activation descriptor. The ActivatableRef
  74   74       * in the resulting stub has its activation id set to the
  75   75       * activation id supplied as the second argument.
  76   76       */
  77   77      public static Remote getStub(ActivationDesc desc, ActivationID id)
  78   78          throws StubNotFoundException
  79   79      {
  80   80          String className = desc.getClassName();
  81   81  
  82   82          try {
  83      -            Class cl =
       83 +            Class<?> cl =
  84   84                  RMIClassLoader.loadClass(desc.getLocation(), className);
  85   85              RemoteRef clientRef = new ActivatableRef(id, null);
  86   86              return Util.createProxy(cl, clientRef, false);
  87   87  
  88   88          } catch (IllegalArgumentException e) {
  89   89              throw new StubNotFoundException(
  90   90                  "class implements an illegal remote interface", e);
  91   91  
  92   92          } catch (ClassNotFoundException e) {
  93   93              throw new StubNotFoundException("unable to load class: " +
↓ open down ↓ 272 lines elided ↑ open up ↑
 366  366      public void readExternal(ObjectInput in)
 367  367          throws IOException, ClassNotFoundException
 368  368      {
 369  369          id = (ActivationID)in.readObject();
 370  370          ref = null;
 371  371          String className = in.readUTF();
 372  372  
 373  373          if (className.equals("")) return;
 374  374  
 375  375          try {
 376      -            Class refClass = Class.forName(RemoteRef.packagePrefix + "." +
      376 +            Class<?> refClass = Class.forName(RemoteRef.packagePrefix + "." +
 377  377                                             className);
 378  378              ref = (RemoteRef)refClass.newInstance();
 379  379              ref.readExternal(in);
 380  380          } catch (InstantiationException e) {
 381  381              throw new UnmarshalException("Unable to create remote reference",
 382  382                                           e);
 383  383          } catch (IllegalAccessException e) {
 384  384              throw new UnmarshalException("Illegal access creating remote reference");
 385  385          }
 386  386      }
↓ open down ↓ 25 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX