[GemStone-Smalltalk] Patch for GBS 8.7.1 when connecting with large number of connectors

Richard Sargent richard.sargent at gemtalksystems.com
Mon Apr 29 12:31:26 PDT 2024

Thanks, David! That kind of defect is annoying. However, I'm not sure I
really want the "messenger" suddenly printing very long reports. I will fix
how the connector class list is created, instead.
I've created bugu #50982 for this error. Hopefully it will be in the next
GBS release.

In case you want to know, there are two major variants of #evaluate:* and
#execute:* methods. One simply evaluates a string; the second also
evaluates a String, but the string holds a block which can accept
arguments. The latter variant is ideal for this kind of work and is much
preferred over constructing a string to execute/evaluate.

On Mon, Apr 29, 2024 at 11:48 AM David Shaffer via GemStone-Smalltalk <
gemstone-smalltalk at lists.gemtalksystems.com> wrote:

> Just started using VW9.4 and GBS 8.7.1 and ran into the following bug:
> CstSession>>fetchBehaviorDelegatesForClassConnectors:
> builds a string by passing the connectors list to
> CstMessageDispatcher>>print:with:.  Ultimately this results in sending
> Array>>printOn: which truncates large arrays after printing 5000 characters
> adding ‘…etc…’ which causes GemStone compilation errors.  The patch is to
> simply add the following method:
> Array>>cstArgumentPrintOn: aStream
>         "Append to the argument, aStream, the elements of the Array
>         enclosed by parentheses, without truncation."
>         aStream nextPutAll: '#('.
>         self do: [:element |
>                         element printOn: aStream]
>                 separatedBy: [aStream space].
>         aStream nextPut: $)
> Note that his bug could have existed before 8.7.1 because I feel like this
> is at least the second time I’ve patched it (sorry for not reporting
> earlier!).
> Best,
> David
> _______________________________________________
> GemStone-Smalltalk mailing list
> GemStone-Smalltalk at lists.gemtalksystems.com
> https://lists.gemtalksystems.com/mailman/listinfo/gemstone-smalltalk
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.gemtalksystems.com/mailman/archives/gemstone-smalltalk/attachments/20240429/b41bb328/attachment.htm>

More information about the GemStone-Smalltalk mailing list