Skip to content

Bumped J2N to 2.2.0-alpha-0048 - #1378

Merged
paulirwin merged 3 commits into
apache:masterfrom
NightOwl888:feature/J2N-2.2.0-beta.0048
Jun 22, 2026
Merged

Bumped J2N to 2.2.0-alpha-0048#1378
paulirwin merged 3 commits into
apache:masterfrom
NightOwl888:feature/J2N-2.2.0-beta.0048

Conversation

@NightOwl888

Copy link
Copy Markdown
Contributor
  • You've read the Contributor Guide and Code of Conduct.
  • You've included unit or integration tests for your change, where applicable.
  • You've included inline docs for your change, where applicable.
  • There's an open issue for the PR that you are making. If you'd like to propose a change, please open an issue to discuss the change or find an existing issue.

Related to #1284 and #1311

Bumped J2N to 2.2.0-alpha-0048 so we can integrate the latest features

Details

This upgrades to a version of J2N that contains the new CountdownLatch implementation that allows signaling after reaching 0 without throwing exceptions.

It also removes the one call to dynamic because the support for it was removed from J2N in NightOwl888/J2N#181 as part of #1278. That same PR also significantly improved the performance of Aggressive mode, so we can simply use string.Format(J2N.Text.StringFormatter.InvariantCulture, "{0}", collection) to format collections. It also correctly handles IStructuralFormattable, which all J2N collections implement to improve performance.

NOTE: This also updates LuceneTestCase.DumpEnumerator() to use the above approach rather than calling Collections.ToString(), since the types involved may be broader than collections and StringFormatter handles all known differences in formatting between .NET and Java.

… to format unknown types, which provides more consistent rules for formatting collections, arrays, and numeric types than Collections.ToString().
…with J2N's StringFormater, which can format any generic collection type and doesn't require the dependency on Microsoft.CSharp on older TFMs.
@NightOwl888
NightOwl888 requested a review from paulirwin June 22, 2026 20:44
@NightOwl888 NightOwl888 added the notes:ignore Don't show this PR in the Release Notes label Jun 22, 2026
@paulirwin
paulirwin merged commit ff37677 into apache:master Jun 22, 2026
211 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

notes:ignore Don't show this PR in the Release Notes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants