Uploaded image for project: '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.)

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 1.0
    • None
    • groovy-runtime
    • 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.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              warnero Warner Onstine
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated: