--- old/src/share/classes/sun/rmi/server/ActivationGroupImpl.java Fri Feb 24 14:12:23 2012 +++ new/src/share/classes/sun/rmi/server/ActivationGroupImpl.java Fri Feb 24 14:12:21 2012 @@ -66,10 +66,10 @@ /** maps persistent IDs to activated remote objects */ private final Hashtable active = - new Hashtable(); + new Hashtable<>(); private boolean groupInactive = false; private final ActivationGroupID groupID; - private final List lockedIDs = new ArrayList(); + private final List lockedIDs = new ArrayList<>(); /** * Creates a default activation group implementation. @@ -296,14 +296,9 @@ active.put(id, entry); return entry.mobj; - } catch (NoSuchMethodException e) { - /* user forgot to provide activatable constructor? */ - throw new ActivationException - ("Activatable object must provide an activation"+ - " constructor", e); - - } catch (NoSuchMethodError e) { - /* code recompiled and user forgot to provide + } catch (NoSuchMethodException | NoSuchMethodError e) { + /* user forgot to provide activatable constructor? + * or code recompiled and user forgot to provide * activatable constructor? */ throw new ActivationException