Github user jhuynh1 commented on a diff in the pull request:

    https://github.com/apache/geode/pull/712#discussion_r133843603
  
    --- Diff: 
extensions/geode-modules/src/main/java/org/apache/geode/modules/session/catalina/DeltaSession.java
 ---
    @@ -553,8 +555,30 @@ public void fromData(DataInput in) throws IOException, 
ClassNotFoundException {
         }
       }
     
    -  protected Map readInAttributes(final DataInput in) throws IOException, 
ClassNotFoundException {
    -    return DataSerializer.readObject(in);
    +  private void readInAttributes(DataInput in) throws IOException, 
ClassNotFoundException {
    +    Map map = DataSerializer.readObject(in);
    +    ConcurrentMap newMap = new ConcurrentHashMap();
    +    newMap.putAll(map);
    +    try {
    +      Field field = getAttributesFieldObject();
    +      field.setAccessible(true);
    +      field.set(this, newMap);
    +    } catch (NoSuchFieldException e) {
    +      logError(e);
    --- End diff --
    
    I'll throw NoSuchElementException and IllegalStateException if any of these 
occur


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

Reply via email to