Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8192748

Multi-release feature fails when WebStart cache is disabled

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P3
    • Resolution: Fixed
    • Affects Version/s: 9
    • Fix Version/s: 10
    • Component/s: deploy
    • Labels:
    • Introduced In Version:
      9
    • Resolved In Build:
      b36
    • CPU:
      x86
    • OS:
      windows_10

      Description

      When starting a multi-release application with Java 9 WebStart the classes located in META-INF/versions/9 will be ignored when the WebStart application cache is disabled. As soon as the WebStart cache is enabled it works fine.

      A simple test can be found below, you can also give it a try by executing http://www.jyloo.com/downloads/public/test/multiReleaseTest.jnlp

      Test case:
      ----------------------------------
      package mrtest;

      import javax.swing.JFrame;
      import javax.swing.JLabel;
      import javax.swing.SwingUtilities;

      import mrtest.impl.Implementation;

      public class Main extends JFrame{
        public static void main(String[] args) {
          SwingUtilities.invokeLater(new Runnable() {
            @Override
            public void run(){
               new Main();
            }
          });
        }

        public Main(){
          add(new JLabel(new Implementation().toString()));
          setTitle("MultiRelease Test");
          setDefaultCloseOperation(EXIT_ON_CLOSE);
          setSize(800, 600);
          setLocationRelativeTo(null);
          setVisible(true);
        }
      }

      ----------------------------------
      //Default implementation class
      package mrtest.impl;
      public class Implementation{
        @Override
        public String toString() {
          return "Default Implementation";
        }
      }

      ----------------------------------
      //Java 9 implementation class in META-INF/versions/9
      package mrtest.impl;
      public class Implementation{
        @Override
        public String toString(){
          return "***** Java 9 implementation *****";
        }
      }

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                herrick Andy Herrick
                Reporter:
                wzberger Wolfgang Zitzelsberger
              • Votes:
                0 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                • Due:
                  Created:
                  Updated:
                  Resolved: