Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [jts-dev] Simple cast problem

I've tried running with jts-core-19.0.jar
Still fails.
Simon

39 Cliff View Drive, Allens Rivulet, 7150, Tasmania, Australia
(P) 03 62 396 397
(M) 0418 396 381
On 13 Feb 2024, at 09:57, SPDBA via jts-dev <jts-dev@xxxxxxxxxxx> wrote:
I have print statements either side.
After print never executes.
Code used to work (an unhelpful thing to say) but the java versions etc (see other email) are basically the same as before.
What gets me is that no exception is thrown: the calling java class just terminates. The application doesn't terminate, just the action.
Simon


39 Cliff View Drive, Allens Rivulet, 7150, Tasmania, Australia
(P) 03 62 396 397
(M) 0418 396 381
On 13 Feb 2024, at 08:54, Martin Davis via jts-dev <jts-dev@xxxxxxxxxxx> wrote:
Is it possible the code just terminates normally?

You could try adding print statements to see exactly where the code terminates.

On Mon, Feb 12, 2024 at 2:33 AM SPDBA via jts-dev <jts-dev@xxxxxxxxxxx> wrote:
In my Java code I create a Geometry object that could be of any type.

I test that the Geometry us if type Polygon then do a cast. My code terminates with no exception thrown....

Geometry g = ......;
if ( g instanceof Polygon) {
   Polygon p = (Polygon) g;
   //Process polygon
}

Any help trying to work out what is going on appreciated.

Simon

39 Cliff View Drive, Allens Rivulet, 7150, Tasmania, Australia
(P) 03 62 396 397
(M) 0418 396 381
_______________________________________________
jts-dev mailing list
jts-dev@xxxxxxxxxxx
To unsubscribe from this list, visit https://dev.eclipse.org/mailman/listinfo/jts-dev


jts-dev mailing list
jts-dev@xxxxxxxxxxx
To unsubscribe from this list, visit https://dev.eclipse.org/mailman/listinfo/jts-dev


jts-dev mailing list
jts-dev@xxxxxxxxxxx
To unsubscribe from this list, visit https://dev.eclipse.org/mailman/listinfo/jts-dev

Back to the top