[ krysalis-Bugs-942246 ] A FNC_1 character inside the barcode gives an error
"SourceForge.net" <[email protected]>
| Newsgroups | gmane.comp.krysalis.devel |
|---|---|
| Message-ID | <[email protected]> |
Bugs item #942246, was opened at 2004-04-26 04:28 Message generated for change (Tracker Item Submitted) made by Item Submitter You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=423515&aid=942246&group_id=36516 Category: barcode Group: release Status: Open Resolution: None Priority: 5 Submitted By: Nobody/Anonymous (nobody) Assigned to: Jeremias Märki (jmaerki) Summary: A FNC_1 character inside the barcode gives an error Initial Comment: Hi, If you have a FNC_1 character somewhere inside a code128 barcode, you will in some cases eventually get an ArrayIndexOutOfBoundsException. This is because Character.digit gives -1 as result of this character in row 218 in DefaultCode128Encoder.java. If the value next to the FNC_1 character is 0, then encoded[respos] will be -1 and this is the thing that later gives the exception. My barcode example: ñ020456789012341837100ñ3101000200, where ñ is the FNC_1 character. /Marc [email protected] ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=423515&aid=942246&group_id=36516 ------------------------------------------------------- This SF.net email is sponsored by: The Robotic Monkeys at ThinkGeek For a limited time only, get FREE Ground shipping on all orders of $35 or more. Hurry up and shop folks, this offer expires April 30th! http://www.thinkgeek.com/freeshipping/?cpg=12297