As Matt has hinted this may be insufficient support for inner classes. I
compiled my code with sun 1.3.1 and 1.4 in windows NT and XP without
problems and according to language specs the code is legal. Furthermore, as
the inner class is not static, it has access to all the variables as the
enclosing class and the PdfBody constructor didn't even have to have the
PdfWriter as parameter as it can be called as PdfWriter.this. The same goes
for writer.os that can be replaced by os. I also tried this and it compiled
and run flawlessly.
Maybe to be on the safe side PdfBody should be static, it doesn't need to
access any PdfWriter variable and the addition of getOs() would be enough.

Best Regards,
Paulo Soares

> -----Original Message-----
> From: Bruno [SMTP:[EMAIL PROTECTED]
> Sent: Wednesday, March 26, 2003 8:20
> To:   Paulo Soares
> Cc:   [EMAIL PROTECTED]
> Subject:      RE: [iText-questions] The page 2 was requested but the
> document h  as only 1 pages.
> 
> Quoting Paulo Soares <[EMAIL PROTECTED]>:
> 
> > The current CVS is exactly the same what I have after the modifications,
> I
> > just did a diff. I don't see any reason for that other that you didn't
> > compile the right files.
> 
> I have the same problem if I use your source.zip.
> It's definitely a compiler problem.
> I tried compiling with JDK1.3.1 and JDK1.4.
> The problem persists.
> 
> I will look into Matt Bensons suggestions and try
> to fix the problem. Otherwise we will be overwhelmed
> with similar remarks and questions.
> 
> Bruno


-------------------------------------------------------
This SF.net email is sponsored by:
The Definitive IT and Networking Event. Be There!
NetWorld+Interop Las Vegas 2003 -- Register today!
http://ads.sourceforge.net/cgi-bin/redirect.pl?keyn0001en
_______________________________________________
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Reply via email to