This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug java/12182] New: compilation of iText fails, probably a bug


PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12182

           Summary: compilation of iText fails, probably a bug
           Product: gcc
           Version: 3.4
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: java
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: jahwe2000 at gmx dot net
                CC: gcc-bugs at gcc dot gnu dot org

When compiling iText 1.0.0 (with gcj 3.4 and 3.3.1 und windows/mingw) I get 
the following error:

D:\MinGW\classpath\lib_test\PdfCopy.java: In class 
`com.lowagie.text.pdf.PdfCopy':
D:\MinGW\classpath\lib_test\PdfCopy.java: In method 
`com.lowagie.text.pdf.PdfCopy.copyIndirect
(com.lowagie.text.pdf.PRIndirectReference)':
D:\MinGW\classpath\lib_test\PdfCopy.java:170: error: Can't find constructor 
`com.lowagie.text.pdf.PdfCopy$RefKey
(Lcom/lowagie/text/pdf/PRIndirectReference;)' in type 
`com.lowagie.text.pdf.PdfCopy$RefKey'. Candidates are:  `
(com.lowagie.text.pdf.PdfCopy,com.lowagie.text.pdf.PdfIndirectReference)' in
`com.lowagie.text.pdf.PdfCopy$RefKey'
  `(com.lowagie.text.pdf.PdfCopy,com.lowagie.text.pdf.PRIndirectReference)' in 
`com.lowagie.text.pdf.PdfCopy$RefKey'.
           RefKey key = new RefKey(in);

This could probably be a bug, because this works without errors with the JDK 
and also compiled with the Excelsior JET trial version.
I have assembled all files required for the project in a zip file, to 
reproduce it. It is 2.4 MB big, so I could mail it to anyone interested on 
demand.

I am calling gcj with this command line:
D:\mingw\bin\gcj.exe --classpath=D:\MinGW\classpath\rt --
main=com.lowagie.tools.encrypt_pdf 
D:\MinGW\classpath\rt\com\lowagie\tools\encrypt_pdf.java 
D:\MinGW\classpath\lib_test\*.java -o d:\mingw\encryptpdf.exe
All files are placed in D:\MinGW\classpath\rt and subdirectories, but I also 
had to include all files seperately, because else I got undefined reference 
errors. So all files are placed in D:\MinGW\classpath\lib_test and included in 
a bulk.

regards,
Philip


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]