Bug#899183: sub...@bugs.debian.org

2018-05-21 Thread Martin Kittel
Hi Markus,

thanks for the prompt reply. I gave it another try with Java 11 and to
my surprise it is working there. After having a closer look at the Java
doc it turns out that the change in return value type from Buffer to
ByteBuffer is only present in Java 9 and has been reverted in 10 again.
While I don't understand why it is working with Java 11 but not with 1.7
I am happy to see that it is. I was afraid it would be broken for all
JDKs when compiled against Java 9.

Thanks again and best wishes,

Martin.



Bug#899183: sub...@bugs.debian.org

2018-05-20 Thread Markus Koschany
Control: retitle -1 libpdfbox2-java:


Hello,

Am 20.05.2018 um 14:23 schrieb Martin Kittel:
> Package: libpdfbox2-java
> Version: 2.0.9-1
> Severity: important
> 
> Dear Maintainer,
> 
> I get the exception below when running my Java program using
> libpdfbox2-java. I tried running the program with different
> JREs (down to 1.7) but the error persists. I guess the problem is
> that libpdfbox2-java is compiled using Java 9. Java 9 seems to
> introduce a change that breaks things even when running with
> older JREs:
> 
> 'because in JDK9 ByteBuffer.flip() returns a ByteBuffer... It
>  used to return a Buffer in JDK8.'
> (see https://github.com/plasma-umass/doppio/issues/497 also
> for suggestions on how to fix this at build time)

thanks for the report. Unfortunately there is not much what we can do
here. I think it would be impractical to fix all packages by casting
ByteBuffer.flip to Buffer. By default we compile to source/target 1.7
but I can force -release 9 for libpdfbox2-java to make it clear that we
don't support older JREs in Buster. In fact we will release with OpenJDK
11 as the default JRE. If it works with an older runtime it is always a
bonus but isn't really supported by us.

Regards,

Markus



signature.asc
Description: OpenPGP digital signature


Bug#899183: sub...@bugs.debian.org

2018-05-20 Thread Martin Kittel
Package: libpdfbox2-java
Version: 2.0.9-1
Severity: important

Dear Maintainer,

I get the exception below when running my Java program using
libpdfbox2-java. I tried running the program with different
JREs (down to 1.7) but the error persists. I guess the problem is
that libpdfbox2-java is compiled using Java 9. Java 9 seems to
introduce a change that breaks things even when running with
older JREs:

'because in JDK9 ByteBuffer.flip() returns a ByteBuffer... It
 used to return a Buffer in JDK8.'
(see https://github.com/plasma-umass/doppio/issues/497 also
for suggestions on how to fix this at build time)

I downloaded the official jar
(http://www-us.apache.org/dist/pdfbox/2.0.9/fontbox-2.0.9.jar) and with
that one I don't see the problem.


Exception in thread "AWT-EventQueue-1" java.lang.NoSuchMethodError:
java.nio.ByteBuffer.position(I)Ljava/nio/ByteBuffer;
at org.apache.fontbox.type1.Type1Lexer.readToken(Type1Lexer.java:184)
at org.apache.fontbox.type1.Type1Lexer.(Type1Lexer.java:64)
at org.apache.fontbox.type1.Type1Parser.parseASCII(Type1Parser.java:86)
at org.apache.fontbox.type1.Type1Parser.parse(Type1Parser.java:61)
at org.apache.fontbox.type1.Type1Font.createWithPFB(Type1Font.java:56)
at
org.apache.pdfbox.pdmodel.font.FileSystemFontProvider.getType1Font(FileSystemFontProvider.java:762)
at
org.apache.pdfbox.pdmodel.font.FileSystemFontProvider.access$100(FileSystemFontProvider.java:55)
at
org.apache.pdfbox.pdmodel.font.FileSystemFontProvider$FSFontInfo.getFont(FileSystemFontProvider.java:131)
at
org.apache.pdfbox.pdmodel.font.FontMapperImpl.findFont(FontMapperImpl.java:436)
at
org.apache.pdfbox.pdmodel.font.FontMapperImpl.findFontBoxFont(FontMapperImpl.java:376)
at
org.apache.pdfbox.pdmodel.font.FontMapperImpl.getFontBoxFont(FontMapperImpl.java:350)
at 
org.apache.pdfbox.pdmodel.font.PDType1Font.(PDType1Font.java:146)
at 
org.apache.pdfbox.pdmodel.font.PDType1Font.(PDType1Font.java:79)
at
org.apache.pdfbox.pdmodel.interactive.form.PDAcroForm.verifyOrCreateDefaults(PDAcroForm.java:128)
at
org.apache.pdfbox.pdmodel.interactive.form.PDAcroForm.(PDAcroForm.java:93)
...


Best wishes,

Martin.


-- System Information:
Debian Release: buster/sid
  APT prefers testing
  APT policy: (990, 'testing')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 4.16.0-1-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8),
LANGUAGE= (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages libpdfbox2-java depends on:
ii  libcommons-logging-java  1.2-2
ii  libfontbox2-java 2.0.9-1

libpdfbox2-java recommends no packages.

Versions of packages libpdfbox2-java suggests:
ii  libbcmail-java  1.59-1
ii  libbcprov-java  1.59-1

-- no debconf information