JDK-8036958 : doc, release notes for JDK-8036942 should be added
  • Type: Bug
  • Component: docs
  • Sub-Component: release_notes
  • Affected Version: 8
  • Priority: P2
  • Status: Closed
  • Resolution: Fixed
  • Submitted: 2014-03-07
  • Updated: 2014-03-13
  • Resolved: 2014-03-11
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 8
8Fixed
Related Reports
Relates :  
Description
For a code like:

import java.io.IOException;

class LambdaWithMultiCatch {
    public static void main(String[] args) {
        Runnable r = () -> {
        try {
            throw new IOException();
        } catch(IOException | IllegalArgumentException e) {
            System.out.println("This code will generate a wrong exception table");
        }
      };
      r.run();
    }
}

javac will generate an incorrect exception table for method main. The generated exception table will look like:

    Exception table:
         from    to  target type
             0     8     8   Class java/lang/Exception  <---- no trace of IOException nor IllegalArgumentException

This is a known issue and developers should avoid using multi-catch statements inside lambda bodies till this issue is fixed.

Comments
Item added to "Known Issues" section of JDK 8 release notes
11-03-2014