Uploaded image for project: 'Jalview'
  1. Jalview
  2. JAL-4492

Gradle build is not excluding jalview.appletgui/java.applet classes

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 2.11.4.1
    • Fix Version/s: None
    • Component/s: gradle
    • Labels:
      None
    • Environment:
      gradle build

      Description

      The ant build (pre 2.11.0.0/2019) had exclusions for most/all the jalview.appletgui classes, meaning that java.applet.* classes are not needed for a Java desktop build of Jalview.
      java.applet is still needed for a jalviewjs transpile.

      In Java 17 the java.applet package is completely removed, so a compilation that imports any of these packages fails. With exclusions did could be made to work.

      Note: for a jalviewjs/jalview.bin.JalviewLite transpilation the java.applet.Applet class is required (or rather the JSObject.getWindow(Applet) method is required). The JSObject class remains in Java 17 but the getWindow(Applet) method has been removed along with the java.applet package.
      https://github.com/adoptium/jdk17u/blob/master/src/jdk.jsobject/share/classes/netscape/javascript/JSObject.java

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              soares Ben Soares
              Reporter:
              soares Ben Soares
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated: