Issue validation: #Collection cannot be changed using the classbuilder....

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

Issue validation: #Collection cannot be changed using the classbuilder....

Henrik Nergaard
Hi,

I uploaded a slice to fogbugz which includes removing the class side Ivars from Collection to a new class managing a default random generator instance.
The Monkey throws this error while checking: Error: #Collection cannot be changed using the classbuilder. Use the reflective APi (e.g #addClassVariable:). If you know what you are doing, you can use #disableDuring: of DangerousClassNotifier

Anyone know how to resolve this correctly?

Case 16577:
https://pharo.fogbugz.com/f/cases/16577

Error message:
https://ci.inria.fr/pharo/job/Pharo-5.0-Issue-Validator/13783//artifact/validationReport.html

Best regards,
Henrik
Reply | Threaded
Open this post in threaded view
|

Re: Issue validation: #Collection cannot be changed using the classbuilder....

Marcus Denker-4

> On 15 Sep 2015, at 18:23, Henrik Nergaard <[hidden email]> wrote:
>
> Hi,
>
> I uploaded a slice to fogbugz which includes removing the class side Ivars
> from Collection to a new class managing a default random generator instance.
> The Monkey throws this error while checking: /Error: #Collection cannot be
> changed using the classbuilder. Use the reflective APi (e.g
> #addClassVariable:). If you know what you are doing, you can use
> #disableDuring: of DangerousClassNotifier/
>
> Anyone know how to resolve this correctly?
>
Yes, you can add

DangerousClassNotifier disable

as a pre-load

and a a postload:


DangerousClassNotifier enable.


This way the monkey can check it and we can integrate it using the integration tool.

        Marcus
Reply | Threaded
Open this post in threaded view
|

Re: Issue validation: #Collection cannot be changed using the classbuilder....

Henrik Nergaard
Thanks Marcus, that fixed the issue.

Best regards,
Henrik
Reply | Threaded
Open this post in threaded view
|

Re: Issue validation: #Collection cannot be changed using the classbuilder....

stepharo
In reply to this post by Henrik Nergaard
Hi guys

could you have a look at the SciSmalltalk random package because it
would be nice to make sure that
the one in the image is in ysnc with the ones in the package.

Stef
PS preparing to leav to teach pharo in africa :)

Le 15/9/15 18:23, Henrik Nergaard a écrit :

> Hi,
>
> I uploaded a slice to fogbugz which includes removing the class side Ivars
> from Collection to a new class managing a default random generator instance.
> The Monkey throws this error while checking: /Error: #Collection cannot be
> changed using the classbuilder. Use the reflective APi (e.g
> #addClassVariable:). If you know what you are doing, you can use
> #disableDuring: of DangerousClassNotifier/
>
> Anyone know how to resolve this correctly?
>
> Case 16577:
> https://pharo.fogbugz.com/f/cases/16577
> <https://pharo.fogbugz.com/f/cases/16577>
>
> Error message:
> https://ci.inria.fr/pharo/job/Pharo-5.0-Issue-Validator/13783//artifact/validationReport.html
> <https://ci.inria.fr/pharo/job/Pharo-5.0-Issue-Validator/13783//artifact/validationReport.html>
>
> Best regards,
> Henrik
>
>
>
> --
> View this message in context: http://forum.world.st/Issue-validation-Collection-cannot-be-changed-using-the-classbuilder-tp4850387.html
> Sent from the Pharo Smalltalk Developers mailing list archive at Nabble.com.
>
>