`@ValueBased` is an annotation only meaningful for concrete value classes.  We 
should fix javac and remove the redundant annotation.

Apparently javac is not reading the `MIGRATED_VALUE_CLASS` flag from class 
files correctly. This is fine for most Java compilation jobs but affects the 
microbenchmark building, which I think reads from the non-preview set of 
classes. We can fix the reading of that flag to bypass microbenchmark building 
issues.

---------
- [x] I confirm that I make this contribution in accordance with the [OpenJDK 
Interim AI Policy](https://openjdk.org/legal/ai).

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

Commit messages:
 - Fix MigratedValueClass not sufficient for Record

Changes: https://git.openjdk.org/valhalla/pull/2510/files
  Webrev: https://webrevs.openjdk.org/?repo=valhalla&pr=2510&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8385943
  Stats: 11 lines in 3 files changed: 5 ins; 1 del; 5 mod
  Patch: https://git.openjdk.org/valhalla/pull/2510.diff
  Fetch: git fetch https://git.openjdk.org/valhalla.git pull/2510/head:pull/2510

PR: https://git.openjdk.org/valhalla/pull/2510

Reply via email to