[jdk17u-dev] RFR: 8320001: javac crashes while adding type annotations to the return type of a constructor

Liam Miller-Cushon cushon at openjdk.org
Wed Nov 29 20:17:31 UTC 2023


This is a backport of [JDK-8320001: javac crashes while adding type annotations to the return type of a constructor](https://bugs.openjdk.org/browse/JDK-8320001), which fixes a regression introduced by [JDK-8225377: type annotations are not visible to javac plugins across compilation boundaries](https://bugs.openjdk.org/browse/JDK-8225377).

I resolved a trivial merge conflict due to a change on an adjacent line.

Testing: included test fails without the fix, and passes with it applied

-------------

Depends on: https://git.openjdk.org/jdk17u-dev/pull/1952

Commit messages:
 - Backport 5e24aaf4f7f11862ec8ac9d5c3e65d614104fb2c

Changes: https://git.openjdk.org/jdk17u-dev/pull/2005/files
 Webrev: https://webrevs.openjdk.org/?repo=jdk17u-dev&pr=2005&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8320001
  Stats: 143 lines in 2 files changed: 142 ins; 0 del; 1 mod
  Patch: https://git.openjdk.org/jdk17u-dev/pull/2005.diff
  Fetch: git fetch https://git.openjdk.org/jdk17u-dev.git pull/2005/head:pull/2005

PR: https://git.openjdk.org/jdk17u-dev/pull/2005


More information about the jdk-updates-dev mailing list