All notable changes to this project are listed here. The format follows Keep a Changelog, and the project uses Semantic Versioning.
Releases before 0.5.0 are described in src/changes/changes.xml. Numbers like "SourceForge #3038645" are ids from the old SourceForge tracker.
The 0.5.2 date is the date of its tag and its Maven Central upload;
changes.xml says 2011-12-13.
- Fixed CVE-2022-41404, a denial of service. Option values that refer to each
other, such as
[a] x=${b/y}and[b] y=${a/x}, caused aStackOverflowError. Resolving a variable now stops after 16 levels and throws the newCircularReferenceException. The limit is the newmaxResolveDepthsetting, which you can change with-Dorg.ini4j.config.maxResolveDepth=NorConfig.getGlobal().setMaxResolveDepth(int). Reported on SourceForge by bingdian.
- Breaking: ini4j now needs Java 17 or newer.
- Breaking:
Profile.remove(sectionName, optionName)is nowProfile.removeOption(sectionName, optionName), because the old name clashes withMap.removeon Java 17. - The project moved from SourceForge (SVN) to GitHub (Git), and the POM was modernized.
- Source code is formatted with Google Java Style.
- The Javadoc build now fails on a broken reference or tag.
- Replaced APIs that are deprecated in Java 17:
Class.newInstance()and theCharacter,DoubleandFloatconstructors. - Dynamic bean proxies no longer fail when the thread has no context class loader.
- Fixed how
BasicProfilehandles a bean property prefix together withpropertyFirstUpper. - Fixed the SCM URL in
pom.xmlso deploying to Maven Central works. The oldchanges.xmllists this as version 0.5.5, but that version was never tagged and is not on Maven Central.
- GitHub Actions workflow that runs the build, tests, Spotless, SpotBugs and
PMD on pushes to
mainand on pull requests againstmain, except for changes that only touchdocs/. - Javadoc for the public API of
org.ini4jandorg.ini4j.spi. - Dev container configuration.
0.5.4 - 2015-02-16
- Updated the release part of the build for the new Maven Central policy.
0.5.3 - 2015-02-13
This version is tagged but was not published to Maven Central.
- New config option
escapeKeyOnly. Whenescapeis on,escapeKeyOnlyturns off escaping of values.
- Operators (
:or=) in property and option names are now escaped by both the parser and the formatter.
0.5.2 - 2011-07-05
- Default value support in
getandfetch: pass the default as the last argument and it is returned for a missing option (SourceForge #3047041). - Configurable comment handling:
Config.setHeaderComment(boolean)switches the header comment on or off, andConfig.setComment(boolean)does the same for all comments (SourceForge #2971952). - Byte order mark (BOM) support, as a workaround for the Java BOM and UTF-8 problem (SourceForge #2866427).
- The
UnicodeLittleandUnicodeBigcharset references were removed because they broke the Java 1.4 backport (SourceForge #2778337).
- A backslash at the end of a line joined it with the next line even when
escaping was off. The new
escapeNewlineoption turns line joining off. It is on by default forWini(SourceForge #3038645). - Using more than one
${...}macro in one option value did not work (SourceForge #2817403). - Fixes for the Java 1.4 backport. The tests now also run on a Java 1.4 JVM (SourceForge #2908623).
- Typo in the Options tutorial (SourceForge #2817399).
0.5.1 - 2009-04-08
- Applet support, and a small demo applet on the project site.
- Removed a
java.util.NavigableMapreference that broke Java 1.5 compatibility.
0.5.0 - 2009-04-02
Regclass that reads and writes the Windows registry and.regfiles. It has the same data model asIni.- Sections form a tree with subsections, based on the section name and a
separator (
/or\), like in.regfiles. - Comment support in
IniandOptions: a header comment, section comments and option comments. - Bean property mapping with an upper case first letter in key names, as in
Mozilla
.inifiles (SourceForge #2706511). - More convenient access methods in
OptionBundleandOptionMap.
Iniwas refactored into theProfileinterface and theBasicProfilesuperclass.- A backslash at the end of a line joins the line with the next one.
- Removed deprecated methods and classes.