Aspose-cad for Java cannot be used in an OSGi environment

Some code inside the jar makes it impossible to use it in an OSGi framework:

...
    a("Reading JAR file: '" + file.getAbsolutePath() + "'");
    try {
      jarFile = new JarFile(file);
    } catch (IOException iOException) {
      throw new RuntimeException("Unexpected IOException reading JAR File '" + file.getAbsolutePath() + "'", iOException);
    } 
    Enumeration enumeration = jarFile.entries();
...

It would be nice to have an OSGi friendly library.

Additional info:
the code is in class com.aspose.cad.internal.kU.a

There, an URI for a class is obtained by
paramClass.getClassLoader().getResource("pack/age/classname")

In an OSGi environment, this URI does not start with “jar:” but with “bundle:”
Example:
bundle://eb9acb3c-434e-4b94-93d2-861a2355bbd4_10.0:34/com/aspose/cad/internal/gg/a.class

@wimix
Hi.
We have opened the following new ticket(s) in our internal issue tracking system for the investigation of this issue and will deliver fixes according to the terms mentioned in Free Support Policies.

Issue ID(s): CADJAVA-11303

You can obtain Paid Support Services if you need support on a priority basis, along with the direct access to our Paid Support management team.