Manuscript (Case [Issue]22470) Kernel - Bug in the opal compiler. Shared Pools inheritance is ignored.

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

Manuscript (Case [Issue]22470) Kernel - Bug in the opal compiler. Shared Pools inheritance is ignored.

Pharo Issue Tracker
Manuscript Notification
avatar
Bug in Project:  Kernel: 1. Pharo Image  •  You are subscribed to this case
SharedPool subclass: #PoolA
instanceVariableNames: ''
classVariableNames: 'A'
package: 'CompilerBugTest'
PoolA subclass: #PoolB
instanceVariableNames: ''
classVariableNames: ''
package: 'CompilerBugTest'
Object subclass: #MyClass
instanceVariableNames: ''
classVariableNames: ''
poolDictionaries: 'PoolB'
package: 'CompilerBugTest'
MyClass>>#m
^A

The A is tagged as undeclared
I wrote a test. Where and how should I submit it?
BTW, Pharo 7 does not allow filing out Pool dictionaries. Why is this?
The semantics is provided by Class>>#sharedPoolOfVarNamed:
It does what I was expecting
sharedPoolOfVarNamed: aString
"Returns the SharedPool or nil from which the pool variable named aString is coming from."

^ self sharedPools
detect: [ :each | each usesClassVarNamed: aString ]
ifNone:
[ self superclass ifNil: [ nil ] ifNotNil: [ self superclass sharedPoolOfVarNamed: aString ] ]
Priority Priority: 5 – Fix If Time Status Status: Working On
Assigned To Assigned to: Everyone Milestone Milestone: Pharo7.0

Go to Case
No longer need updates? Unsubscribe from this case.

Don't want Manuscript notifications anymore? Update your preferences.

Manuscript

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