Would appreciate some help with the following please:
My application which works correctly with jdk1.5.0_06 fails with the following ClassCastException with Mustang b85 (-source 1.5):
java.lang.ClassCastException: java.awt.geom.Path2D$Double cannot be cast to java.awt.geom.GeneralPath
when I try to retrieve a transformed GeneralPath as follows:
GeneralPath outputGeneralPath = (GeneralPath)affineTransform.createTransformedShape( inputGeneralPath );
From a quick look at the source code for 1.5 and 1.6 for the method createTransformedShape(…), it appears that 1.5 can conditionally return a GeneralPath, while 1.6 unconditionally returns a Path2D.Double, and the exception occurs because GeneralPath extends Path2D.Float.
Am I missing anythin’ obvious ?
Thanks in advance