Details
-
Bug
-
Resolution: Fixed
-
P2
-
hs25, 8
-
b108
-
Verified
Description
An empty try statement should not get up to Gen. If the try statement has a finalizer, then only the finalizer should be generated. This should be caught at Lower.
The only case where Gen should deal with a try with an empty body is in the face of a synchronized statement. In this case Gen itself, depending on the user code, can generate a try with an empty block, but the code generated in this case is correct.
The only case where Gen should deal with a try with an empty body is in the face of a synchronized statement. In this case Gen itself, depending on the user code, can generate a try with an empty block, but the code generated in this case is correct.
Attachments
Issue Links
- duplicates
-
JDK-8023950 try/catch not generated around monitorexit for synchronized statement
- Resolved
-
JDK-8023211 Inconsistent stack height
- Resolved
- relates to
-
JDK-8022186 javac generates dead code if a try with an empty body has a finalizer
- Closed
-
JDK-8024398 javac, compiler crashes with try with empty body
- Closed
-
JDK-8024337 javac should provide a toolbox library for class file related analysis
- Resolved