RichTextFX icon indicating copy to clipboard operation
RichTextFX copied to clipboard

Error with RichTextFX and VirtualizedScrollPane with Jdk 21

Open git-moss opened this issue 1 year ago • 0 comments

I am trying to use a InlineCssTextArea with a VirtualizedScrollPane like this:

InlineCssTextArea logArea= new InlineCssTextArea (); VirtualizedScrollPane<InlineCssTextArea> loggerScrollPane = new VirtualizedScrollPane<> (this.logArea);

I can build it with Maven but in Eclipse (on latest Windows 11) I get the following error:

"The type org.reactfx.value.Var cannot be resolved. It is indirectly referenced from required type org.fxmisc.flowless.VirtualizedScrollPane"

When I put the code in a library, build it with Maven and integrate it my application, I can again build it with Maven and run it. But if I integrate the library in Maven (which compiles fine as part of the application) and run it, it crashes with:

Caused by: java.lang.Error: Unresolved compilation problems: The type org.reactfx.value.Var cannot be resolved. It is indirectly referenced from required type org.fxmisc.flowless.VirtualizedScrollPane The type org.reactfx.value.Val cannot be resolved. It is indirectly referenced from required type org.fxmisc.flowless.VirtualizedScrollPane

The issue does not happen when I build it with Jdk 11.

git-moss avatar Nov 18 '24 20:11 git-moss