eric-milles commented on pull request #1590: URL: https://github.com/apache/groovy/pull/1590#issuecomment-874766107
Instead of stashing `ex` into `e` and then extracting in the `GroovyCastException` constructor, can you save the reference as a peer to the `nested` local variable and then call `addSuppressed` on the new cast exception instance? I can't really say how many places make use of the `GroovyCastException` constructor. Also, you don't need a package statement for your test scripts. They should run just fine from the default package. Usually we add that only if there is a need to check a scenario involving separate packages. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
