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

It detects the parameter name too early in MVVM Params

    XMLWordPrintable

Details

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

    Description

      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

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  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