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

Form proxy with enum property

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Normal Normal
    • 8.0.0
    • 8.0.0
    • Databind 2
    • Security Level: Jimmy
    • ZK 8.0.1

      a form bean with an enum property causes an exception when reading the enum value from the proxy object (unless the setter has been called before calling the getter)

      java.lang.RuntimeException: zk.support.bugs.FormProxyWithEnumTest$TaskState is final
      	at javassist.util.proxy.ProxyFactory.checkClassAndSuperName(ProxyFactory.java:804)
      	at javassist.util.proxy.ProxyFactory.makeSortedMethodList(ProxyFactory.java:826)
      	at javassist.util.proxy.ProxyFactory.computeSignature(ProxyFactory.java:836)
      	at javassist.util.proxy.ProxyFactory.createClass(ProxyFactory.java:398)
      	at org.zkoss.bind.proxy.ProxyHelper.createProxyIfAny(ProxyHelper.java:59)
      	at org.zkoss.bind.proxy.BeanProxyHandler.invoke(BeanProxyHandler.java:142)
      

      see attachment

            jumperchen jumperchen
            cor3000 cor3000
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 30 minutes
                30m