Bug in Monticello with empty category name from dynamically generated methods

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

Bug in Monticello with empty category name from dynamically generated methods

Thelliez
I am not sure if this is a bug in GemTools/GLASS or if I should report
that to another list.

The execution of the following method fails if the categoryName is empty (#'').

PackageInfo
isForeignClassExtension: categoryName
        ^ categoryName first = $* and: [(self isYourClassExtension: categoryName) not]


The categoryName was empty because some methods were dynamically
generated with _compileInContext....

The fix might be as simple as:

isForeignClassExtension: categoryName
        ^ categoryName isEmpty not and: [ categoryName first = $* and: [(self
isYourClassExtension: categoryName) not] ]


Thierry
Reply | Threaded
Open this post in threaded view
|

Re: Bug in Monticello with empty category name from dynamically generated methods

Dale Henrichs
No one expects the empty category!

your fix looks fine... I've submitted a bug...

Dale

On Mar 29, 2011, at 1:07 PM, Thierry Thelliez wrote:

> I am not sure if this is a bug in GemTools/GLASS or if I should report
> that to another list.
>
> The execution of the following method fails if the categoryName is empty (#'').
>
> PackageInfo
> isForeignClassExtension: categoryName
> ^ categoryName first = $* and: [(self isYourClassExtension: categoryName) not]
>
>
> The categoryName was empty because some methods were dynamically
> generated with _compileInContext....
>
> The fix might be as simple as:
>
> isForeignClassExtension: categoryName
> ^ categoryName isEmpty not and: [ categoryName first = $* and: [(self
> isYourClassExtension: categoryName) not] ]
>
>
> Thierry