Michael Bien

Results 600 comments of Michael Bien

had no ideas how to easily "brand" this so that this is only enabled in the IDE. Will probably move this to NB 29 (although it would have been nice...

the layer registration moved to `nb/ide.branding`

hi @sebastian-toepfer, this might be already fixed via https://github.com/apache/netbeans/pull/7391 could you try a nightly build and check if it is working? https://github.com/apache/netbeans?tab=readme-ov-file#download

guava removed their `misc.Unsafe` usage https://github.com/apache/netbeans/pull/8376

this looks like the 3.6 lucene editor dependency ( `./ide/libs.lucene/external/binaries-list`) since `RamUsageEstimator` doesn't use `Unsafe` anymore. ``` jfr print --events jdk.DeprecatedInvocation nb_startup_1.jfr ... jdk.DeprecatedInvocation { startTime = 20:11:36.151 (2025-03-31) method...

guice usages can be fixed by setting `-J-Dguice_custom_class_loading=CHILD` -> https://github.com/apache/netbeans/pull/9021 truffle has also unsafe usage. post java cluster activation: ``` WARNING: sun.misc.Unsafe::objectFieldOffset called by com.oracle.truffle.api.dsl.InlineSupport$UnsafeField (jar:file:/home/mbien/dev/netbeans_28/ide/modules/ext/truffle-api-24.0.0.jar!/) at com.oracle.truffle.api.dsl.InlineSupport$UnsafeField.(InlineSupport.java:1162) at com.oracle.truffle.api.dsl.InlineSupport$InlinableField.(InlineSupport.java:359)...

extracted the exception from the provided log: NPE: ``` SEVERE [global] java.lang.NullPointerException: Cannot invoke "javax.swing.text.View.getEndOffset()" because "child" is null at java.desktop/javax.swing.text.TextLayoutStrategy$AttributedSegment.getRunLimit(TextLayoutStrategy.java:472) at java.desktop/java.awt.font.StyledParagraph.(StyledParagraph.java:105) at java.desktop/java.awt.font.TextMeasurer.initAll(TextMeasurer.java:224) at java.desktop/java.awt.font.TextMeasurer.(TextMeasurer.java:168) at java.desktop/java.awt.font.LineBreakMeasurer.(LineBreakMeasurer.java:311) at...

there may be valid reasons for this e.g so that only the official UCs are active pre-cluster activation. But this would be easy to migrate if it turns out to...

I don't know what the problem is. Please use the "How to reproduce" section to provide reproducing steps and describe the problem and what the expectations are.

ah right, thanks! Can't reproduce it so far though, but will keep an eye on that.