Community
Participate
Working Groups
Build Identifier: I20100218 This code fails. --- <Shell xmlns="http://www.eclipse.org/xwt/presentation" xmlns:x="http://www.eclipse.org/xwt"> <Shell.layout> <FillLayout/> </Shell.layout> <SashForm weights="1"> <Button text="Test"/> </SashForm> </Shell> --- ...because StringToIntArray considers String with single element as empty array. This is incorrect. Reproducible: Always
Created attachment 162417 [details] Fix for array with single element This fixes problem for me. It seems that StringTokenizer is smart on its own, so no additional checks required. But still I'm not sure that e.printStackTrace(); is correct way for handling exceptions. XWT rendering may be part of some more complex system, so would be good to re-throw exception to allow higher level to know about problem.
Created attachment 166181 [details] Fix for array with single element, also throw exception
Thanks the patch is applied for 1.0M6