Uploaded image for project: 'ZK'
  1. ZK
  2. ZK-4381

BinderImpl with MatchMedia not Serializable

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Normal
    • 9.0.1
    • 8.6.2
    • Databind 2
    • Security Level: Jimmy
    • None

    Description

      Steps to Reproduce

      run the attached test case BinderSerializableTest.java

      Current Result

      java.io.NotSerializableException: java.lang.reflect.Methodjava.io.NotSerializableException: java.lang.reflect.Method at
      java.base/java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1185) at 
      java.base/java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:349) at java.base/java.util.HashMap.internalWriteEntries(HashMap.java:1840) at 
      java.base/java.util.HashMap.writeObject(HashMap.java:1411) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at 
      java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at 
      java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at 
      java.base/java.lang.reflect.Method.invoke(Method.java:566) at java.base/java.io.ObjectStreamClass.invokeWriteObject(ObjectStreamClass.java:1130) at 
      java.base/java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1497) at 
      java.base/java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1433) at 
      java.base/java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1179) at 
      java.base/java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1553) at 
      java.base/java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1510) at 
      java.base/java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1433) at 
      java.base/java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1179) at 
      java.base/java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:349) at 
      BinderSerializableTest.writeAndReadBack(BinderSerializableTest.java:41) at 
      

      Expected Result

      no error, cached methods should be marked transient and restored efficiently on demand

      Debug Information

      the MatchMedia method cache is not marked transient

      Workaround

       

      Attachments

        Activity

          People

            rudyhuang rudyhuang
            cor3000 cor3000
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - 4 hours Original Estimate - 4 hours
                4h
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 5 hours
                5h