jdk/src/share/classes/javax/management/remote/TargetedNotification.java
changeset 20829 61b4adb0a695
parent 20809 b5e0612d60b9
child 23010 6dadb192ad81
equal deleted inserted replaced
20828:7d54086945dd 20829:61b4adb0a695
   130 //          IllegalArgumentException("Invalid listener ID: null");
   130 //          IllegalArgumentException("Invalid listener ID: null");
   131 //      return id.intValue();
   131 //      return id.intValue();
   132 //     }
   132 //     }
   133 
   133 
   134     private void readObject(ObjectInputStream ois) throws IOException, ClassNotFoundException {
   134     private void readObject(ObjectInputStream ois) throws IOException, ClassNotFoundException {
   135         ObjectInputStream.GetField gf = ois.readFields();
   135         ois.defaultReadObject();
   136         Notification notification = (Notification)gf.get("notif", null);
       
   137         Integer listenerId = (Integer)gf.get("id", null);
       
   138         try {
   136         try {
   139             validate(notification, listenerId);
   137             validate(this.notif, this.id);
   140             this.notif = notification;
       
   141             this.id = listenerId;
       
   142         } catch (IllegalArgumentException e) {
   138         } catch (IllegalArgumentException e) {
   143             throw new InvalidObjectException(e.getMessage());
   139             throw new InvalidObjectException(e.getMessage());
   144         }
   140         }
   145     }
   141     }
   146 
   142