Groovy
  1. Groovy
  2. GROOVY-2503 MOP 2.0 design inflluencing issues
  3. GROOVY-1838

When implementing MOP you cannot intercept core Object methods (equals(), hashCode(), etc.)

    Details

    • Type: Sub-task Sub-task
    • Status: Open
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: 1.0
    • Fix Version/s: None
    • Component/s: groovy-runtime
    • Labels:
      None

      Description

      For some reason when attempting to intercept methods using the invokeMethod() routine there are a set of methods that are uninterceptable. The methods that I tested are:

      • equals()
      • hashCode()

      I'm sure there are others. This seems like a hole in the whole MetaObjectProtocol, when intercepting methods I should be able to intercept all of them, not just some of them. Since this is being reworked I thought it would be a good time to file a bug.

        Issue Links

          Activity

          Mark Thomas made changes -
          Workflow jira [ 12969186 ] Default workflow, editable Closed status [ 12976915 ]
          Mark Thomas made changes -
          Project Import Mon Apr 06 02:11:23 UTC 2015 [ 1428286283443 ]
          Mark Thomas made changes -
          Workflow jira [ 12730954 ] Default workflow, editable Closed status [ 12742849 ]
          Mark Thomas made changes -
          Project Import Sun Apr 05 13:32:57 UTC 2015 [ 1428240777691 ]
          Jochen Theodorou made changes -
          Component/s groovy-runtime [ 16250 ]
          Jochen Theodorou made changes -
          Fix Version/s 3.0 [ 13489 ]
          Jochen Theodorou made changes -
          Parent GROOVY-2503 [ 61571 ]
          Issue Type Bug [ 1 ] Sub-task [ 7 ]
          Jochen Theodorou made changes -
          Link This issue depends upon GROOVY-2503 [ GROOVY-2503 ]
          Jochen Theodorou made changes -
          Fix Version/s 2.0 [ 13489 ]
          Jochen Theodorou made changes -
          Fix Version/s 1.6 [ 13832 ]
          Jochen Theodorou made changes -
          Field Original Value New Value
          Fix Version/s 1.6 [ 13832 ]
          Warner Onstine created issue -

            People

            • Assignee:
              Unassigned
              Reporter:
              Warner Onstine
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:

                Development