pcorless / icepdf

PDF Rendering and Viewing API in Java
Apache License 2.0
84 stars 21 forks source link

Build error (java 8) #288

Closed edrobal closed 1 year ago

edrobal commented 1 year ago

Hello Cannot build with maven : [ERROR] COMPILATION ERROR : [INFO] ------------------------------------------------------------- [ERROR] /mnt/agl/java/jtoolbox/icepdf/core/core-awt/src/main/java/org/icepdf/core/pobjects/fonts/zfont/cmap/CMap.java:[543,56] incompatible types: possible lossy conversion from int to char [ERROR] /mnt/agl/java/jtoolbox/icepdf/core/core-awt/src/main/java/org/icepdf/core/pobjects/fonts/zfont/cmap/CMap.java:[768,35] cannot find symbol symbol: method readAllBytes() location: variable inputStream of type java.io.InputStream [ERROR] /mnt/agl/java/jtoolbox/icepdf/core/core-awt/src/main/java/org/icepdf/core/pobjects/fonts/zfont/fontFiles/ZFontTrueType.java:[46,30] cannot find symbol symbol: method readAllBytes() location: class java.io.InputStream [ERROR] /mnt/agl/java/jtoolbox/icepdf/core/core-awt/src/main/java/org/icepdf/core/pobjects/fonts/zfont/fontFiles/ZFontType1.java:[62,44] cannot find symbol symbol: method readAllBytes() location: class java.io.InputStream [INFO] 4 errors [INFO] ------------------------------------------------------------- [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 6.480 s [INFO] Finished at: 2023-08-09T12:42:30+02:00 [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.7.0:compile (default-compile) on project icepdf-core: Compilation failure: Compilation failure: [ERROR] /mnt/agl/java/jtoolbox/icepdf/core/core-awt/src/main/java/org/icepdf/core/pobjects/fonts/zfont/cmap/CMap.java:[543,56] incompatible types: possible lossy conversion from int to char [ERROR] /mnt/agl/java/jtoolbox/icepdf/core/core-awt/src/main/java/org/icepdf/core/pobjects/fonts/zfont/cmap/CMap.java:[768,35] cannot find symbol [ERROR] symbol: method readAllBytes() [ERROR] location: variable inputStream of type java.io.InputStream [ERROR] /mnt/agl/java/jtoolbox/icepdf/core/core-awt/src/main/java/org/icepdf/core/pobjects/fonts/zfont/fontFiles/ZFontTrueType.java:[46,30] cannot find symbol [ERROR] symbol: method readAllBytes() [ERROR] location: class java.io.InputStream [ERROR] /mnt/agl/java/jtoolbox/icepdf/core/core-awt/src/main/java/org/icepdf/core/pobjects/fonts/zfont/fontFiles/ZFontType1.java:[62,44] cannot find symbol [ERROR] symbol: method readAllBytes() [ERROR] location: class java.io.InputStream [ERROR] -> [Help 1] [ERROR] [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. [ERROR] Re-run Maven using the -X switch to enable full debug logging. [ERROR] [ERROR] For more information about the errors and possible solutions, please read the following articles: [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException Is icepdf java 8 compatible ?

edrobal commented 1 year ago

Ok Java 8 is no more supported but...