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

Not all exception types work with initializers

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P4 P4
    • None
    • 1.2.0
    • tools
    • generic
    • solaris_2.5.1

      This code fails to compile:

         class B {
             B () throws Exception {
             }
       
             { throw new Exception(); }
         }

      It appears to work ok for type Error, however.

            wmaddoxsunw William Maddox (Inactive)
            dstoutamsunw David Stoutamire (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: