Parsing arguments: java.lang.IndexOutOfBoundsException: Index: 15, Size: 15
ochafik opened this issue · comments
From @shevek on December 24, 2014 23:7
Error parsing arguments :
-library parted -package org.anarres.device.parted.generated /usr/include/parted/parted.h -mode Directory -runtime JNA -o /home/shevek/java/udev4j/parted/build/generated-sources/jnaerator -f -v(?:erbose)? -Dtime_t=long -D_STDIO_H : java.lang.IndexOutOfBoundsException: Index: 15, Size: 15
Caused by: java.lang.IndexOutOfBoundsException: Index: 15, Size: 15
at java.util.ArrayList.rangeCheck(ArrayList.java:635)
at java.util.ArrayList.get(ArrayList.java:411)
at com.ochafik.lang.jnaerator.JNAeratorCommandLineArgs$ArgsParser.parse(JNAeratorCommandLineArgs.java:122)
0.12-SNAPSHOT
Please consider using JOptSimple, it's very good indeed and appears to be the standard now.
Copied from original issue: nativelibs4java/nativelibs4java#545
From @shevek on December 24, 2014 23:10
Appears to be caused by the -D_STDIO_H in an attempt to workaround another bug.
From @shevek on December 24, 2014 23:25
Caused by not having an = sign.
Note that -D_STDIO_H causes really WEIRD behaviour.