Menu

#323 I m using IKVM nuget package (8.1.5717), and i have a doubt regarding IKVM.OpenJDK.Core .

v1.0 (example)
open
nobody
None
5
2018-10-15
2018-10-15
Amit
No

I m using IKVM nuget package (8.1.5717), and i have a doubt regarding IKVM.OpenJDK.Core .

Actually, I have used it with PDFBox.dll (which I have made from PDFBox_2.0.12.jar). There is a class in PDFBox which implements Iterable and IEnumerable interfaces.

Now I think IKVM.OpenJDK.Core expect this class to have foreach method implemented. But when I have seen source code of Java.Lang.Iterable interface foreach method is already implemented there (default method) and no need of further overriding.

This version of PDFBox is their released one so in java environment everthing must be running fine.
But I am facing the problem. Exception looks like below.

System.TypeLoadException: Method 'forEach' in type 'org.apache.pdfbox.cos.COSArray' from assembly 'pdfbox, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null' does not have an implementation. at org.apache.pdfbox.pdfparser.BaseParser.parseDirObject() at org.apache.pdfbox.pdfparser.BaseParser.parseCOSDictionaryValue() at org.apache.pdfbox.pdfparser.BaseParser.parseCOSDictionaryNameValuePair(COSDictionary ) at org.apache.pdfbox.pdfparser.BaseParser.parseCOSDictionary() at org.apache.pdfbox.pdfparser.COSParser.parseTrailer() at org.apache.pdfbox.pdfparser.COSParser.parseXref(Int64 startXRefOffset) at org.apache.pdfbox.pdfparser.COSParser.retrieveTrailer() at org.apache.pdfbox.pdfparser.PDFParser.initialParse() at org.apache.pdfbox.pdfparser.PDFParser.parse() at org.apache.pdfbox.pdmodel.PDDocument.load(File file, String password, InputStream keyStore, String alias, MemoryUsageSetting memUsageSetting) at org.apache.pdfbox.pdmodel.PDDocument.load(File file, String password, MemoryUsageSetting memUsageSetting) at org.apache.pdfbox.pdmodel.PDDocument.load(File file) at PDFPOC.Program.loadPDDocument(String documentPath)
kindly reply back with some clarification about this issue.

Discussion


Log in to post a comment.