You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Date: 2007-08-26 19:49
Priority: 2
Submitted By: Dean Wampler (deanwampler)
Assigned To: Dean Wampler (deanwampler)
Category: Pointcut Handling
State: Open
Summary: Can't advice string or symbol objects.
Detailed description
If you specify a string or symbol object with :object[s] => .... specifiers, when you actually want to match on that object, they are misinterpreted as the names of types.
The fix is to better disambiguate the handling of :type[s] vs. :object[s].
The text was updated successfully, but these errors were encountered:
I need to move the list of issues from rubyforge to here. This is a known problem: http://rubyforge.org/tracker/index.php?func=detail&aid=13395&group_id=4281&atid=16494.
Using :types would affect all strings. When using :objects, I have no way of knowing if you are referring to something else or the string/symbol itself. I should probably add a special case :string(s) option to work around. Other suggestions are welcome.
OK, I think you misunderstood... I'm about to start porting those RF issues over to Github. I just wanted your input on whether you wanted more info. If the above looks good I'll use that format. One change is that I'll change '[#13395]' to '[Rubyforge-13395]'.
The remark on :types vs :objects was from the original rubyforge entry :)
Date: 2007-08-26 19:49
Priority: 2
Submitted By: Dean Wampler (deanwampler)
Assigned To: Dean Wampler (deanwampler)
Category: Pointcut Handling
State: Open
Summary: Can't advice string or symbol objects.
Detailed description
If you specify a string or symbol object with
:object[s] => ....
specifiers, when you actually want to match on that object, they are misinterpreted as the names of types.The fix is to better disambiguate the handling of
:type[s]
vs.:object[s]
.The text was updated successfully, but these errors were encountered: