It detects the parameter name too early in MVVM Params

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: Normal
    • 9.5.0.2, 9.5.1
    • Affects Version/s: 9.5.0
    • Component/s: Databind 2
    • None
    • Environment:

      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

            Assignee:
            rudyhuang
            Reporter:
            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