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

Grid.Renderer gets an incorrect method of a RowRender

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Normal
    • Resolution: Done
    • Affects Version/s: 8.0.4
    • Fix Version/s: 8.5.2
    • Component/s: None
    • Security Level: Jimmy
    • Labels:
      None
    • gh.sprint.customfield.default.name:
      ZK 8.5.2 S1, ZK 8.5.2 S2

      Description

      problem description

      in Grid inner class Renderer.render()

      try {
          _renderer.render(row, value, index);
      } catch (AbstractMethodError ex) {
          final Method m = _renderer.getClass().getMethod("render",
                  new Class<?>[] { Row.class, Object.class });
          m.setAccessible(true);
          m.invoke(_renderer, new Object[] { row, value });
      }
      

      RowRenderer sinature already changes to render(Row row, T data, int index)
      But the exception handling code find an inconsistent method signature _renderer.getClass().getMethod("render", new Class<?>[]

      { Row.class, Object.class }

      );

      debug info

      render() signature changed.
      https://www.zkoss.org/javadoc/5.0.11/zk/org/zkoss/zul/RowRenderer.html
      https://www.zkoss.org/javadoc/6.0.0/zk/org/zkoss/zul/RowRenderer.html

        Attachments

          Activity

            People

            • Assignee:
              CharlesQiu CharlesQiu
              Reporter:
              hawk hawk
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - 1 day
                1d
                Remaining:
                Time Spent - 1 hour Remaining Estimate - 7 hours
                7h
                Logged:
                Time Spent - 1 hour Remaining Estimate - 7 hours
                1h