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

Grid.Renderer gets an incorrect method of a RowRender

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Normal Normal
    • 8.5.2
    • 8.0.4
    • None
    • Security Level: Jimmy
    • None
    • ZK 8.5.2 S1, ZK 8.5.2 S2

      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

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

              Created:
              Updated:
              Resolved:

                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