Uploaded image for project: 'Aesh'
  1. Aesh
  2. AESH-458

[JDK9+] package org.aesh.io split in two jars

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 1.1
    • None
    • None
    • None
    • Hide

      Easiest way to reproduce is to run

      java --module-path=. --list-modules

      where module-path is directory with all the jars in it.

      Show
      Easiest way to reproduce is to run java --module-path=. --list-modules where module-path is directory with all the jars in it.

      if you have aesh-1.0.jar and aesh-readline-1.3.jar
      on your module path, jvm complains as both jars export package org.aesh.io
      which violates the modules contract where only one module (jar) can provide single package.

      example error that jvm prints

      java.lang.module.ResolutionException: Modules aesh.readline and aesh export package org.aesh.io to module jboss.marshalling.river
      

      same issue applies for packages

      org.aesh.readline
      org.aesh.util
      org.aesh.io
      

              spederse@redhat.com Stale Pedersen
              tomazcerar Tomaž Cerar (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: