Menu

#29 Ill-founded BarcodeException for EAN 13

open
nobody
None
5
2008-10-14
2008-10-14
No

Hello,

it seems to me that you have introduced with the 1.5 Version an ill-founded BarcodeException complaining about "Invalid data length". Using the old 1.1 Version all works fine.

In fact, the Javadocs state that the barcode should be 11 or 12 characters long. This is wrong for EAN 13 barcodes, they are either 12 or 13 characters long.

net.sourceforge.barbecue.BarcodeException: Invalid data length at net.sourceforge.barbecue.linear.upc.UPCABarcode.<init>(Unknown Source) at net.sourceforge.barbecue.linear.upc.UPCABarcode.<init>(Unknown Source) at net.sourceforge.barbecue.linear.ean.EAN13Barcode.<init>(Unknown Source) at net.sourceforge.barbecue.BarcodeFactory.createEAN13(Unknown Source)

Regards,
Andreas

Discussion


Log in to post a comment.