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

Error in demo code - a "( )" is missing!

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P5 P5
    • None
    • 6
    • client-libs
    • x86
    • linux

      A DESCRIPTION OF THE PROBLEM :
      you have in your documentation:
      "Image image = Toolkit.getDefaultToolkit.getImage(...);"

      that ist wrong.
      A "( )" is missing!

      You should change this to:

      "Image image = Toolkit.getDefaultToolkit().getImage(...);"

      EXPECTED VERSUS ACTUAL BEHAVIOR :
      EXPECTED -
      Image image = Toolkit.getDefaultToolkit().getImage(...);
      ACTUAL -
      Image image = Toolkit.getDefaultToolkit.getImage(...);

      URL OF FAULTY DOCUMENTATION :
      http://java.sun.com/javase/6/docs/api/java/awt/SystemTray.html

            Unassigned Unassigned
            ryeung Roger Yeung (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: