On Fri, 14 Aug 2026 19:20:37 GMT, Vicente Romero <[email protected]> wrote:
>> After this PR value classes that override method Object::finalize will get a >> compiler error instead of a warning >> >> TIA >> >> --------- >> - [X] I confirm that I make this contribution in accordance with the >> [OpenJDK Interim AI Policy](https://openjdk.org/legal/ai). > > Vicente Romero has updated the pull request incrementally with one additional > commit since the last revision: > > another change src/jdk.compiler/share/classes/com/sun/tools/javac/resources/compiler.properties line 4391: > 4389: > 4390: compiler.err.value.finalize=\ > 4391: value classes cannot have a finalizer method, as it is not invoked Maybe match the enum error message: "enums cannot have finalize methods" ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/32355#discussion_r3786928580
