Martin,
I'll look into it when I get back for sure.
Paul
Martin Davis wrote:
One fast thing you could do would be to replace the static initialized
array with an array which is only initialized when first used.
Another option is to simply reimplment getClassSortIndex() using a
simple decision tree (chain of "if (X instanceof Y) then n" stmts)
If you try these and one solves the problem send me a patch and I'll
cut it in.
Martin Davis wrote:
So are you suggesting that this code be changed to avoid the problem?
This piece of code could probably be replaced by something else
pretty easily, if you are sure that it will solve your problem.
Paul Austin wrote:
Further to my previous post I think there is a problem with the
following and the classloader where multiple threads first load the
geometry classes at the same time
private final static Class[] sortedClasses = new Class[] {
Point.class,
MultiPoint.class,
LineString.class,
LinearRing.class,
MultiLineString.class,
Polygon.class,
MultiPolygon.class,
GeometryCollection.class
};
_______________________________________________
jts-devel mailing list
[email protected]
http://lists.refractions.net/mailman/listinfo/jts-devel
_______________________________________________
jts-devel mailing list
[email protected]
http://lists.refractions.net/mailman/listinfo/jts-devel