Repository navigation
feat(java): modernize POM and resolve Java 17 compatibility (BREAKING) - #5
Merged
Merged
Conversation
- Update version to 0.6.0-SNAPSHOT - Set compiler target to Java 17 using maven.compiler.release - Add UTF-8 source encoding property - Migrate SCM from SourceForge SVN to GitHub Git - Update project URL from ini4j.org to github.com/ini4j/ini4j - Remove legacy SourceForge distribution management configuration - Remove SourceForge issue management configuration - Update developer info (timezone, email) - Update JUnit from 4.5 to 4.13.2 - Update EasyMock from 2.3 to 5.2.0 - Remove easymockclassextension dependency (merged into EasyMock 3.2+) - Remove retrotranslator-runtime dependency (Java 5 backward compatibility) - Remove Windows-specific Maven profile - Remove release-candidate profile with checkstyle/PMD configuration - Clean up legacy build configuration and plugins - Simplify project description
- Replace deprecated Class.newInstance() with getDeclaredConstructor().newInstance() - Replace deprecated wrapper constructors (Character, Double, Float) with valueOf() - Fix Proxy.newProxyInstance() classloader to handle null context classloader - Fix BasicProfile transform method to correctly handle prefix with propertyFirstUpper BREAKING CHANGE: Renamed Profile.remove(sectionName, optionName) to removeOption() to avoid conflict with Map.remove() in Java 17+. Users must update calls from profile.remove(section, option) to profile.removeOption(section, option).
Closed
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.
This PR completes the Modernize POM task from Phase 2 of the v0.6.0 roadmap (#1), updating the project to Java 17 and resolving all compatibility issues.
POM Modernization
maven.compiler.releaseDetailed Changes
Version & Build:
maven.compiler.releaseMigration:
Dependencies:
Build Configuration:
Java 17 Compatibility Fixes
Class.newInstance()withgetDeclaredConstructor().newInstance()valueOf()Proxy.newProxyInstance()classloader to handle null context classloaderBreaking Changes
Profile.remove(sectionName, optionName)toremoveOption()to avoid conflict withMap.remove()in Java 17+.Migration:
Test Results
✅ All 203 tests pass successfully with Java 17
Related