RFR: 8336754: Remodel TypeAnnotation to "has" instead of "be" an Annotation [v7]

Chen Liang liach at openjdk.org
Thu Aug 1 20:02:54 UTC 2024


> `TypeAnnotation` is not an annotation, as it should not be used in places like `AnnotationValue.ofAnnotation`. Thus it's remodeled to contain an annotation at a given location instead of to be an annotation.
> 
> Depends on #20205.

Chen Liang has updated the pull request with a new target base due to a merge or a rebase. The incremental webrev excludes the unrelated changes brought in by the merge/rebase. The pull request contains 10 additional commits since the last revision:

 - Improve docs for repeating, default, and value name
 - Merge branch 'master' of https://github.com/openjdk/jdk into fix/typeanno-model
 - Merge branch 'master' of https://github.com/openjdk/jdk into fix/typeanno-model
 - More refinements from alex
 - Artifact -> construct
 - More about Annotation, add equals note
 - Further refine wording
 - Refine the spec of TypeAnnotation per Alex feedback
 - SealedGraph now redundant
 - 8336754: Remodel TypeAnnotation to "has" instead of "be" an Annotation

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

Changes:
  - all: https://git.openjdk.org/jdk/pull/20247/files
  - new: https://git.openjdk.org/jdk/pull/20247/files/cf16e7ee..d45c35fc

Webrevs:
 - full: https://webrevs.openjdk.org/?repo=jdk&pr=20247&range=06
 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=20247&range=05-06

  Stats: 13943 lines in 436 files changed: 7864 ins; 4437 del; 1642 mod
  Patch: https://git.openjdk.org/jdk/pull/20247.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/20247/head:pull/20247

PR: https://git.openjdk.org/jdk/pull/20247


More information about the compiler-dev mailing list