Issue 6002 in pharo: RGMethodDefinition>>compiledMethod fails

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Issue 6002 in pharo: RGMethodDefinition>>compiledMethod fails

pharo
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=6002


Steps 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
Reply | Threaded
Open this post in threaded view
|

Re: Issue 6002 in pharo: RGMethodDefinition>>compiledMethod fails

pharo
Updates:
        Status: Closed

Comment #1 on issue 6002 by [hidden email]:  
RGMethodDefinition>>compiledMethod  fails
http://code.google.com/p/pharo/issues/detail?id=6002

this does not happens anymore (probably fixed with the removal of  
SystemChangeNotifier)


_______________________________________________
Pharo-bugtracker mailing list
[hidden email]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-bugtracker