Status: Accepted
Owner: marianopeck
CC:
[hidden email],
[hidden email]
Labels: Type-Bug Milestone-2.0
New issue 6002 by marianopeck: RGMethodDefinition>>compiledMethod fails
http://code.google.com/p/pharo/issues/detail?id=6002Steps to reproduce:
1. Browse implementors of #writeStream
2. Browse senders of #writeStream
3. Browse class URI
4. Remove #writeStream from URI.
Now, 2 problems:
- the implementors windows gets the red square of deatch
- we get a DNU in RGMethodDefinition>>sourceCode because #compiledMethod is
nil. Now if I check the implementation:
compiledMethod
"Retrieves the compiled method of this definition if exists"
| rClass |
(rClass := self realClass) notNil
ifTrue: [ (rClass includesSelector: self selector)
ifTrue: [ ^rClass >> self selector ] ].
^nil
I don't like at all to answer nil. Why don't we throw an exception?
_______________________________________________
Pharo-bugtracker mailing list
[hidden email]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-bugtracker