I know about that but it's impossible to fix the source for every buggy jdk out there and this is a jdk bug. I don't have to cast a literal char to byte if the value is in range. See the java language reference chapter 5.2.
Best Regards, Paulo Soares ----- Original Message ----- From: "Administrator" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Saturday, January 17, 2004 7:27 Subject: [iText-questions] Linux Errors.... > Dear Sirs, > > I have downloaded your API and find it a wonderful thing! Thank you for > the hard work, you have made my life a lot easier. > > I have discovered that the version I downloaded does not like my linux > server. The reason being that it is very strict about casting chars to > bytes. > > Example: > static final byte endobj[] = {'e','n','d','o','b','j'}; > > // the code above throws a compiler error because you need to > explicitly cast to a byte! > > static final byte endobj[] = > {(byte)'e',(byte)'n',(byte)'d',(byte)'o',(byte)'b',(byte)'j'}; > > // the above code compiles and runs just fine under all OS and VM! > > > Files with these errors are: > > 1. com.lowagie.text.pdf.PdfReader.java > 2. com.lowagie.text.pdf.PdfEncodings.java > 3. com.lowagie.text.pdf.ByteBuffer > > > Thank you again for your time and effort! > > John Bryant > > ------------------------------------------------------- The SF.Net email is sponsored by EclipseCon 2004 Premiere Conference on Open Tools Development and Integration See the breadth of Eclipse activity. February 3-5 in Anaheim, CA. http://www.eclipsecon.org/osdn _______________________________________________ iText-questions mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/itext-questions