-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add export of com.sun.javafx.event to org.jabref #11195
Conversation
"Brute force" adding to many places also does not help: diff --git a/build.gradle b/build.gradle
index 553a0c29da..9667908ebc 100644
--- a/build.gradle
+++ b/build.gradle
@@ -394,7 +394,9 @@ compileJava {
// TODO: Remove access to internal api
addExports = [
// Fix for https://github.com/JabRef/jabref/issues/11188
+ 'javafx.base/com.sun.javafx.event' : 'org.controlsfx.controls',
'javafx.base/com.sun.javafx.event' : 'org.jabref',
+ 'javafx.base/com.sun.javafx.event' : 'org.jabref.merged.module',
'javafx.controls/com.sun.javafx.scene.control' : 'org.jabref',
'org.controlsfx.controls/impl.org.controlsfx.skin' : 'org.jabref'
@@ -406,6 +408,7 @@ run {
// TODO: Remove access to internal api
moduleOptions {
addExports = [
+ 'javafx.base/com.sun.javafx.event' : 'org.jabref',
'javafx.controls/com.sun.javafx.scene.control' : 'org.jabref',
'org.controlsfx.controls/impl.org.controlsfx.skin' : 'org.jabref',
@@ -424,6 +427,7 @@ run {
]
addOpens = [
+ 'javafx.base/com.sun.javafx.event' : 'org.jabref',
'javafx.controls/javafx.scene.control' : 'org.jabref',
'org.controlsfx.controls/org.controlsfx.control.textfield' : 'org.jabref',
'javafx.controls/com.sun.javafx.scene.control' : 'org.jabref', |
The exception in line wrapped form:
|
needs to be added to the run below as well |
You mean the |
The secret was to use |
build.gradle
Outdated
|
||
applicationDefaultJvmArgs = | ||
// Fix for https://github.com/JabRef/jabref/issues/11188 | ||
['--add-exports=javafx.base/com.sun.javafx.event=org.jabref.merged.module'] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
seems like we need to add all runStuff here
'> java.lang.reflect.InaccessibleObjectException: Unable to make protected javafx.collections.ObservableList javafx.scene.Parent.getChildren() accessible: module javafx.graphics does not "opens javafx.scene" to module org.jabref.merged.module
from #11198
And we seem to need more?!
|
Last commit was because of
|
Current issue - when buld locally, it works, when build on the CI, it does not work. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
works now on mac as well
The build for this PR is no longer available. Please visit https://builds.jabref.org/main/ for the latest build. |
Unable to compile on windows after this PR. Log
|
@LoayGhreeb I got it, too. Should be fixed at #11208. Please check latest main :) |
yes, it's fixed. Although those "WARNING" messages are still showing up, but I think it's fine. |
I filed #11209 to avoid the messages. |
Currently does not fix the issue (tried out locally using jPackage).
I have no clue how to continue.
It is also not about
forceMerge
, because the issue reporter says he used the release version (where our update of #11170) is not included.Idea from sshahine/JFoenix#1133 (comment)
Mandatory checks
CHANGELOG.md
described in a way that is understandable for the average user (if applicable)