Hello, I realized a strange behavior setting up a compound shape. I reduced my app to a small test-case, which I added. I also added a picture to visualize what happens. The jar is executable and I tested it with jdk 1.6.0_30 and jdk 1.7.0_03
The lines of interest are from method reCalcShape() of class FailedShape In this method a GeneralPath is assembled and a part of a circle should get subtracted from the GeneralPath. I added a boolean "avoidFailure" to switch between strange behavior and normal operation. The difference between both test-cases is the point, *when* the circle is created. In my code, there's no transformation, but it looks like whether changing the coordinate of a Point creates a transformation. This is not desired, so I'd like to know, whether the strange behavior is some lack of understanding or whether it might be a bug. kind regards Gero
<<attachment: Java2DFailure.png>>
Java2DFailure.jar
Description: Zip archive