Uploaded image for project: 'Wicket'
  1. Wicket
  2. WICKET-2301

When injecting more than one parm in a method, an ArrayIndexOutOfBoundsException is thrown

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 1.4-RC4
    • 1.4-RC5
    • wicket-guice
    • None
    • Tested with wicket1.4-rc4 in windows.

    Description

      When using method injection that takes more than one parameter, an ArrayIndexOutOfBoundsException (-1) is thrown. I've isolated code to line 90 of org.apache.wicket.guice.GuiceProxyTargetLocator. parmTypes[2 - i] should read parmTypes[i - 2]. I will attach a (simple) patch with this.

      Attachments

        Activity

          People

            ivaynberg Igor Vaynberg
            slowery23 Steve Lowery
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: