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

It detects the parameter name too early in MVVM Params

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Normal Normal
    • 9.5.0.2, 9.5.1
    • 9.5.0
    • Databind 2
    • None
    • ZKFIddle

    • None

      Steps to Reproduce

      run fiddle
      https://zkfiddle.org/sample/3gd68cr/1-ExecutionArgParam-example
      click button

      Current Result

      error popup: Unable to get class bytes

      org.zkoss.bind.paranamer.ParameterNamesNotFoundException: Unable to get class bytes.
        at org.zkoss.bind.paranamer.BytecodeReadingParanamer.lookupParameterNames(BytecodeReadingParanamer.java:95)
        at org.zkoss.bind.paranamer.AdaptiveParanamer.lookupParameterNames(AdaptiveParanamer.java:68)
        at org.zkoss.bind.paranamer.CachingParanamer.lookupParameterNames(CachingParanamer.java:78)
        at org.zkoss.bind.paranamer.CachingParanamer.lookupParameterNames(CachingParanamer.java:71)
        at org.zkoss.bind.impl.ParamCall.call(ParamCall.java:150)
      

      Expected Result

      normal result

      Debug Information

      Even @ExecutionArgParam("myParam") was used, ZK stills tried to get the name from the method body.

      Errors in ZKFIddle. No issue on local Hotspot or OpenJ9 JVM.

      Workaround

      no

            rudyhuang rudyhuang
            rudyhuang rudyhuang
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - 4 hours
                4h
                Remaining:
                Time Spent - 3 hours Remaining Estimate - 1 hour
                1h
                Logged:
                Time Spent - 3 hours Remaining Estimate - 1 hour
                3h