Aspose Slides (java) 15.1.0 doesn't work with java 10

Create test class and run it by java 10.0.2 to get the error - java.lang.VerifyError: Cannot inherit from final class

import java.io.FileInputStream;
import java.io.FileNotFoundException;

import com.aspose.slides.Presentation;

public class TestJava10 {
public static void main(final String[] args) {
try {
Presentation ppt = new Presentation(new FileInputStream(“template.pptx”));
System.out.println(ppt.getSlideSize());
} catch (FileNotFoundException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}

}

}

Full error:
java.lang.VerifyError: Cannot inherit from final class
at java.base/java.lang.ClassLoader.defineClass1(Native Method)
at java.base/java.lang.ClassLoader.defineClass(Unknown Source)
at java.base/java.security.SecureClassLoader.defineClass(Unknown Source)
at java.base/jdk.internal.loader.BuiltinClassLoader.defineClass(Unknown Source)
at java.base/jdk.internal.loader.BuiltinClassLoader.findClassOnClassPathOrNull(Unknown Source)
at java.base/jdk.internal.loader.BuiltinClassLoader.loadClassOrNull(Unknown Source)
at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(Unknown Source)
at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(Unknown Source)
at java.base/java.lang.ClassLoader.loadClass(Unknown Source)
at com.aspose.slides.pa5e0ff62.pbdb106a0.p6a2feef8.b.do(Unknown Source)
at com.aspose.slides.pa5e0ff62.pbdb106a0.p6a2feef8.b.(Unknown Source)
at com.aspose.slides.pa5e0ff62.pbdb106a0.p6a2feef8.b.(Unknown Source)
at com.aspose.slides.p390e9825.at.do(Unknown Source)
at com.aspose.slides.ImageCollection.do(Unknown Source)
at com.aspose.slides.avd.do(Unknown Source)
at com.aspose.slides.ave.if(Unknown Source)
at com.aspose.slides.ave.do(Unknown Source)
at com.aspose.slides.Presentation.int(Unknown Source)
at com.aspose.slides.Presentation.if(Unknown Source)
at com.aspose.slides.Presentation.(Unknown Source)
at com.aspose.slides.Presentation.(Unknown Source)
at com.aspose.slides.Presentation.(Unknown Source)template.zip (1.7 MB)

The latest aspose-slides-18.7-jdk16.jar seems to work fine with java 10.
We’ve to upgrade our old version to the latest!

@YS_AR,

I have observed your comments. I like to inform that new versions are more updated and contains more features as compare to old version and support is always provided based on new version so please try to use latest version and if there is still an issue than report here so that we may help you out.

@YS_AR,

I have observed your following comments and like to share that at present the support for Java 10 is not available in Aspose.Slides. An issue with ID SLIDESJAVA-37004 has already been created to proivde requested support and it is likely to be available tentatively by end of Q4 of 2018. We will share the feedback with you once the support will be available.

support for Java 10 is not available in Aspose.Slides. … it is likely to be available tentatively by end of Q4 of 2018<<

Since Java 9 is already desupported, that is not a responsible timeframe. Oracle’s public releases for Java now have a 6 month cadence. Can you increase your response time to match this cadence?

@Steve_S,

We will be sharing the good news with you as soon as the support will be available in API.

The issues you have found earlier (filed as SLIDESJAVA-37004) have been fixed in this update.