Repository navigation
Upgrade Eclipse project Java levels during Java migrations - #1475
Merged
Merged
Conversation
jkschneider
force-pushed
the
eclipse-java-version
branch
from
November 19, 2026 22:34
a939e71 to
ec30905
Compare
jkschneider
force-pushed
the
eclipse-java-version
branch
from
November 19, 2026 22:42
ec30905 to
f2b53e8
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
UpgradeJavaVersion now updates standard Java execution environments in Eclipse .classpath and the source, target platform, and compliance keys in .settings/org.eclipse.jdt.core.prefs. The recipe also handles the LST plain-text representation of those files, preserving formatting, custom VM labels, and newer levels.
For projects whose Eclipse Java levels increase, update existing Bundle-RequiredExecutionEnvironment entries and standard JavaSE osgi.ee equality or minimum-version filters in META-INF/MANIFEST.MF. Preserve manifest line folding, named sections, and unrelated headers and capabilities. OSGi Java execution environments
Tests cover structured and plain-text Eclipse inputs, CRLF and final-newline behavior, legacy version spelling, newer/custom values, folded manifest headers, and manifests in projects whose Eclipse Java levels stay unchanged.
Source-built run 20261119192607-puIFR on the existing YANG Design Studio LST emitted the expected eight files: three classpaths, two prefs files, and three PDE manifests. A byte comparison after applying the patch to a scratch copy confirmed that only the version values changed. The actual manifests use Bundle-RequiredExecutionEnvironment, while the osgi.ee filter is exercised by the regression tests. The CLI reports no supported build tool for this repository, so this replay verifies metadata output.
The isolated migrate-java module suite passed with 3,019 tests, 15 skipped, and zero failures or errors.