Z
zorci
Hi,
as I found, java.awt.GeneralPath is not further backward compatible
from Java 1.6+ since
public final class GeneralPath implements Shape, Cloneable {...} (1.5)
changed to
public final class GeneralPath extends Path2D.Float {...} (1.6)
where Path2D was firstly introduced in 1.6.
Until now, I did not have any problems with java backward
compatibility. After installing Java 1.6 locally I'm not further able
to generate code using GeneralPath for machines <1.6.
Making a local copy of 1.5 compatible GeneralPath is not really
practicable due to the dependencies to many other awt-classes. The only
way I see is to reinstall java 1.5.
What is the reason for that such design?
Are there workarounds?
as I found, java.awt.GeneralPath is not further backward compatible
from Java 1.6+ since
public final class GeneralPath implements Shape, Cloneable {...} (1.5)
changed to
public final class GeneralPath extends Path2D.Float {...} (1.6)
where Path2D was firstly introduced in 1.6.
Until now, I did not have any problems with java backward
compatibility. After installing Java 1.6 locally I'm not further able
to generate code using GeneralPath for machines <1.6.
Making a local copy of 1.5 compatible GeneralPath is not really
practicable due to the dependencies to many other awt-classes. The only
way I see is to reinstall java 1.5.
What is the reason for that such design?
Are there workarounds?