Migration Guide : Migrating from Version 8.5 : Changed PlatformConstants::Error to PlatformConstants::Errorregion for Windows
Changed PlatformConstants::Error to PlatformConstants::Errorregion for Windows
Reason for change
PlatformConstants::Error conflicts with the ANSI Exceptions Error class. This made it impossible to refer to the Error exception class in methods of any class specifying the PlatformConstants pool dictionary on Windows without resorting to the convoluted System image globalNamespace classAt: #Error idiom.
Change
PlatformConstants::Error was renamed to PlatformConstants::Errorregion on Windows. This aligns it with the 3 other region return codes (Nullregion, Simpleregion and Complexregion). All code shipped with VA Smalltalk that referred to PlatformConstants::Error was updated.
Action required
Error was (and Errorregion now is) a return code from a small number of calls into Windows from methods in the CgRegion class. If you have code that referenced the Error entry in PlatformConstants, you need to change the reference to be Errorregion.
If you have classes that both include the PlatformConstants pool and contain methods that refer to the Error class, you will need to touch those methods and resave them so they bind Error to the class rather than the PlatformConstants entry.
Last modified date: 07/02/2019