ObjectMethods.bootstrap missing getter validation

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: P4
    • 27
    • Affects Version/s: 27
    • Component/s: core-libs

      The ObjectMethods.bootstrap method does not properly validate the getter method handles supplied by the users. As a result, a user can supply a method handle that:
      1. Has more arguments than the receiver argument
      2. Has a wrong receiver argument
      3. Returns void
      And this method runs into weird exceptions.

      Per the API spec, such bad arguments should be checked and result in IllegalArgumentException.

            Assignee:
            Chen Liang
            Reporter:
            Chen Liang
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: