Details
-
Type:
Sub-task
-
Status:
Open
-
Priority:
Major
-
Resolution: Unresolved
-
Affects Version/s: 1.0
-
Fix Version/s: None
-
Component/s: None
-
Labels:None
-
Number of attachments :
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
- depends upon
-
GROOVY-2503
MOP 2.0 design inflluencing issues
-
Activity
blackdrag blackdrag
made changes -
| Field | Original Value | New Value |
|---|---|---|
| Fix Version/s | 1.6 [ 13832 ] |
blackdrag blackdrag
made changes -
| Fix Version/s | 1.6 [ 13832 ] |
blackdrag blackdrag
made changes -
| Fix Version/s | 2.0 [ 13489 ] |
blackdrag blackdrag
made changes -
| Link | This issue depends upon GROOVY-2503 [ GROOVY-2503 ] |
blackdrag blackdrag
made changes -
| Parent | GROOVY-2503 [ 61571 ] | |
| Issue Type | Bug [ 1 ] | Sub-task [ 7 ] |
blackdrag blackdrag
made changes -
| Fix Version/s | 3.0 [ 13489 ] |
Actually it looks like all methods belonging to Object will not be intercepted by invokeMethod, which may be a design constraint not to mess with the basic class, but definitely warrants another look when the MOP is revised.