Issue 7058 in pharo: bug on compilation

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

Issue 7058 in pharo: bug on compilation

pharo
Status: Accepted
Owner: ----
Labels: Milestone-2.0 Type-Bug Importance-High

New issue 7058 by [hidden email]: bug on compilation
http://code.google.com/p/pharo/issues/detail?id=7058

shadow classe compilations are presenting errors since some versions.

This test shows the problem:

testAnonymousClassCompilation
        | anonClass code method |
       
        anonClass := Object shallowCopy.
        anonClass superclass: Object;
                organization: nil;
                methodDict: MethodDictionary new.
               
        code := 'foo ^ self bar + 5 '.
       
        anonClass compile: code classified: 'abrakadabra'.
       
        self assert: (anonClass includesSelector: #foo).
        method := anonClass compiledMethodAt: #foo.
        self assert: (method methodClass == anonClass).



_______________________________________________
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 7058 in pharo: bug on compilation

pharo
Updates:
        Status: Closed

Comment #1 on issue 7058 by [hidden email]: bug on compilation
http://code.google.com/p/pharo/issues/detail?id=7058

putting nil as the name solves the problem


_______________________________________________
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 7058 in pharo: bug on compilation

pharo

Comment #2 on issue 7058 by [hidden email]: bug on compilation
http://code.google.com/p/pharo/issues/detail?id=7058

the problem is #binding method.
here how it looks like in my image, and that's why it works in my image.

binding
        "Answer a binding for the receiver, sharing if possible"
       | binding |
        binding := self environment associationAt: name ifAbsent: [nil -> self].
        ^binding value == self ifTrue: [binding] ifFalse: [nil -> self]

why binding value == self was removed?
i think it should be there.. otherwise, it lies with all consequences.



_______________________________________________
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 7058 in pharo: bug on compilation

pharo
Updates:
        Status: FixToInclude

Comment #3 on issue 7058 by [hidden email]: bug on compilation
http://code.google.com/p/pharo/issues/detail?id=7058

(No comment was entered for this change.)


_______________________________________________
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 7058 in pharo: bug on compilation

pharo
Updates:
        Status: Integrated

Comment #4 on issue 7058 by [hidden email]: bug on compilation
http://code.google.com/p/pharo/issues/detail?id=7058

in 2.0 420


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