Skip to content

Conversation

@mbien
Copy link
Member

@mbien mbien commented Oct 27, 2025

first commit fixes the internal reference tracking WeakHashMap:

  • WeakHashMap keys, which are used to track the lifecycle of BaseFileObj, must be identity objects.
  • this can be also seen as a bugfix, since Integers are bad reference strength indicators due to the internal Integer boxing cache - some are always strongly reachable

second commit is for module cleanup

  • language level bump, overrides and simplifications.

tested using:

26-jep401ea2+1-1 (don't forget -J--enable-preview)

NB starts and projects load at least, but more work may be needed in other areas (did only very basic testing).

meta issue #8256

@mbien mbien added Platform [ci] enable platform tests (platform/*) ci:dev-build [ci] produce a dev-build zip artifact (7 days expiration, see link on workflow summary page) labels Oct 27, 2025
@BlueGoliath

This comment was marked as off-topic.

@mbien
Copy link
Member Author

mbien commented Oct 28, 2025

The errors from these issues must have been silently thrown because Netbeans 27 started just fine for me. The IDE did crash everytime the editor's context menu was opened though.

Of course Netbeans was also highlighted perfectly fine code as having errors. I could've sworn removing nb-javac worked around that last EA build but maybe not.

This is not about editor support for JDK 26 or any editor features regarding value types. This PR so far is just here to allow (very) early testing of running NB on ea JDKs which have the JEP 401 implementation enabled.

@mbien mbien force-pushed the valhalla branch 2 times, most recently from 8b5381f to 561766c Compare October 28, 2025 13:21
@mbien mbien added the ci:all-tests [ci] enable all tests label Oct 30, 2025
@mbien mbien changed the title Valhalla Awaits Master Filesystem Valhalla compatibility Oct 30, 2025
@mbien mbien added this to the NB29 milestone Oct 30, 2025
@mbien mbien marked this pull request as ready for review October 30, 2025 06:11
mbien added 2 commits October 31, 2025 00:20
The WeakHashMap keys, which are used to track the lifecycle of
BaseFileObj, must be identity objects.

This is also a bugfix, since Integers are bad reference strength
indicators due to the internal Integer boxing cache.
Language level bump, overrides and simplifications.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ci:all-tests [ci] enable all tests ci:dev-build [ci] produce a dev-build zip artifact (7 days expiration, see link on workflow summary page) Code cleanup DO NOT squash Platform [ci] enable platform tests (platform/*)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants