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

java.awt.Menu.writeObject has a throws clause that is too conservative

XMLWordPrintable

    • beta
    • generic, x86
    • generic, windows_95



      Name: mc57594 Date: 02/27/97


      java\awt\menu.java (358)

      The 'throws' spec for java.awt.Menu.writeObject is
      incorrect according to the Java Language Specification.
      The class 'java.lang.ClassNotFoundException' *IS NOT*
      an unchecked exception. The Sun javac compiler has
      a bug because an unchecked exception is by definition
      any class derived from 'java.lang.Error' or
      'java.lang.RuntimeException'. ClassNotFoundException
      is not a subclass of either of these classes.

      Further support:

      11.5.1.2 in the JLS explicitly states that ClassNotFoundException
      is a checked exception class.



      company - Sybase Waterloo , email - ###@###.###
      ======================================================================

            rraysunw Richard Ray (Inactive)
            mchamnessunw Mark Chamness (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: