Java Polygon And Line Intersecting With Intersectlinepolygon Not Behaving Properly Stack

Java Polygon And Line Intersecting With Intersectlinepolygon Not Behaving Properly Stack