Ticket #3899 (closed defect: invalid)
setPattern using Java MapScript-API throws "incorrect array size" error
| Reported by: | rrenkert | Owned by: | unicoletti |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | MapScript-Java | Version: | svn-trunk (development) |
| Severity: | normal | Keywords: | |
| Cc: | sholl |
Description
When setting a pattern to a style using Java MapScript? the following code throws an error:
--- style.setPatternlength(2); double[] values = new double[] {2.0, 2.0}; style.setPattern(values);
java.lang.IndexOutOfBoundsException?: incorrect array size at edu.umn.gis.mapscript.mapscriptJNI.styleObj_pattern_set(Native Method) at edu.umn.gis.mapscript.styleObj.setPattern(styleObj.java:182) ---
The error occurs on different array sizes (tested with 3, 4, 5, 6 elements).
Thanks for fixing!
Regards
Raimund
Attachments
Change History
Note: See
TracTickets for help on using
tickets.

