Skip to content

Hacking about...#2164

Draft
david-beaumont wants to merge 6 commits intoopenjdk:lworldfrom
david-beaumont:annotation_hacking
Draft

Hacking about...#2164
david-beaumont wants to merge 6 commits intoopenjdk:lworldfrom
david-beaumont:annotation_hacking

Conversation

@david-beaumont
Copy link
Contributor

@david-beaumont david-beaumont commented Feb 25, 2026


Progress

  • Change must not contain extraneous whitespace
  • Commit message must refer to an issue
  • Change must be properly reviewed (1 review required, with at least 1 Committer)

Error

 ⚠️ The pull request body must not be empty.

Reviewing

Using git

Checkout this PR locally:
$ git fetch https://git.openjdk.org/valhalla.git pull/2164/head:pull/2164
$ git checkout pull/2164

Update a local copy of the PR:
$ git checkout pull/2164
$ git pull https://git.openjdk.org/valhalla.git pull/2164/head

Using Skara CLI tools

Checkout this PR locally:
$ git pr checkout 2164

View PR using the GUI difftool:
$ git pr show -t 2164

Using diff file

Download this PR as a diff file:
https://git.openjdk.org/valhalla/pull/2164.diff

@bridgekeeper
Copy link

bridgekeeper bot commented Feb 25, 2026

👋 Welcome back david-beaumont! A progress list of the required criteria for merging this PR into lworld will be added to the body of your pull request. There are additional pull request commands available for use with this pull request.

@openjdk
Copy link

openjdk bot commented Feb 25, 2026

❗ This change is not yet ready to be integrated.
See the Progress checklist in the description for automated requirements.

PREVIEW_PATH := META-INF/preview

ifneq ($(COMPILER), bootjdk)
MODULE_VALUECLASS_SRC_DIRS := $(call FindModuleValueClassSrcDirs, $(MODULE))
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Lots of this is unrelated to annotation processing per se, just renaming "value class" stuff when it's really just "preview" stuff more generally.

--system none \
--enable-preview -source $(JDK_SOURCE_TARGET_VERSION), \
--enable-preview -source $(JDK_SOURCE_TARGET_VERSION) \
-processor build.tools.valueclasses.GenValueClassList, \
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just this 1 line triggers the new (unwanted) warnings.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Adding -Xlint:-removal \ on the line above this make compilation work.

# source root, which are not being recompiled in this compilation:
$1_AUGMENTED_CLASSPATH += $$(BUILDTOOLS_OUTPUTDIR)/depend $$($1_BIN)
$1_AUGMENTED_CLASSPATH += $$($1_BIN)
$1_PROCESSOR_PATH += $$(BUILDTOOLS_OUTPUTDIR)/depend
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems to work if the /depend dir is no longer also in the augmented classpath.
I don't think order matters here (the user path is first).

EXCLUDE_FILES := $(EXCLUDE_FILES) \
KEEP_ALL_TRANSLATIONS := $(KEEP_ALL_TRANSLATIONS), \
DEPENDS := $($(MODULE)), \
PROCESSOR_PATH := $(BUILDTOOLS_OUTPUTDIR)/jdk_tools_classes, \
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

New argument to add to the default path containing /depend dir.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant