JDK-8299849 : Revert JDK-8294461: wrong effectively final determination by javac
  • Type: Bug
  • Component: tools
  • Sub-Component: javac
  • Affected Version: 20
  • Priority: P2
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2023-01-10
  • Updated: 2023-01-12
  • Resolved: 2023-01-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 20 JDK 21
20 b31Fixed 21Fixed
Related Reports
CSR :  
Relates :  
Relates :  
Description
Effectively final handling was changed to be closer to the wording of the JLS under JDK-8294461. However, this lead to JDK-8299416, and it turns out the effectively handling needs more complex consideration, including the specification.

Therefore, the proposal is to revert JDK-8294461, and reconsider the effectively final handling in a future release, making adjustments as needed.
Comments
Changeset: 636976ad Author: Jan Lahoda <jlahoda@openjdk.org> Date: 2023-01-11 07:52:18 +0000 URL: https://git.openjdk.org/jdk20/commit/636976ada8773474a5540234a38667668349b30b
11-01-2023

A pull request was submitted for review. URL: https://git.openjdk.org/jdk20/pull/93 Date: 2023-01-10 15:49:36 +0000
10-01-2023