commit-classpath
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[commit-cp] [bugs #11963] [Swing] KeyStroke.getKeyStroke(String) should


From: Thomas Zander
Subject: [commit-cp] [bugs #11963] [Swing] KeyStroke.getKeyStroke(String) should not (re)throw exceptions.
Date: Sun, 13 Feb 2005 14:40:45 +0000
User-agent: Mozilla/5.0 (compatible; Konqueror/3.3; Linux) KHTML/3.3.91 (like Gecko)

URL:
  <http://savannah.gnu.org/bugs/?func=detailitem&item_id=11963>

                 Summary: [Swing] KeyStroke.getKeyStroke(String) should not
(re)throw exceptions.
                 Project: classpath
            Submitted by: zander
            Submitted on: Sun 02/13/2005 at 14:40
                Category: classpath
                Severity: 5 - Average
                  Status: None
                 Privacy: Public
             Assigned to: None
             Open/Closed: Open
        Platform Version: None

    _______________________________________________________

Details:

The quoted method calls a method that can throw the unchecked exception
IllegalArgumentException.  This method should catch that and return null if
caught.



Note bug 11961 which argues that the AWTKeyStroke should not throw an
nullpointer anymore, this method effectively also does not have to catch it.

See mauve test: gnu.testlet.javax.swing.KeyStroke.getKeyStroke






    _______________________________________________________

This item URL is:

  <http://savannah.gnu.org/bugs/?func=detailitem&item_id=11963>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/





reply via email to

[Prev in Thread] Current Thread [Next in Thread]