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

All JNLP examples on the official Java Swing tutorial are broken

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Fix
    • Icon: P4 P4
    • None
    • 8u25
    • docs
    • x86
    • linux_oracle_6.0

      A DESCRIPTION OF THE PROBLEM :
      The JNLP files have been incorrectly updated. A copyright comment section <!-- ... --> has been placed *before* the <?xml declaration! This is not valid XML syntax; comments cannot appear before the XML declaration.

      Either the XML declaration needs to be:
      (a) moved to the beginning of the files (above the copyright comment)
      (b) removed completely (still valid XML)

      EXPECTED VERSUS ACTUAL BEHAVIOR :
      EXPECTED -
      Clicking on the orange-ish 'Launch' buttons within the 'Try this:' sections launches a swing demo
      ACTUAL -
      Clicking on the orange-ish 'Launch' buttons within the 'Try this:' sections attempts to launch a swing demo. As the jnlp files are invalid XML, an error dialog appears.

      URL OF FAULTY DOCUMENTATION :
      https://docs.oracle.com/javase/tutorial/uiswing

            Unassigned Unassigned
            webbuggrp Webbug Group
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: