You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
opens org.acme.vehiclerouting.domain to ai.timefold.solver.core; // Domain classes
1012
+
opens org.acme.vehiclerouting.solver to ai.timefold.solver.core; // Constraints
1008
1013
...
1009
1014
}
1010
1015
----
1011
1016
1012
-
Otherwise Timefold Solver can't reach those classes or files, even if they are exported.
1017
+
If this is not setup correctly, you will get errors. Usually, these mention the `unnamed module` and give detailed information of what needs to be changed.
1018
+
1019
+
[source,options="nowrap"]
1020
+
----
1021
+
class org.acme.schooltimetabling.domain.Timetable$Timefold$MemberAccessor$Field$lessons (in unnamed module @0x273444fe)
1022
+
cannot access class org.acme.schooltimetabling.domain.Timetable (in module hello.world.school.timetabling)
1023
+
because module hello.world.school.timetabling does not export org.acme.schooltimetabling.domain to unnamed module @0x273444fe
1024
+
----
1025
+
1026
+
[WARNING]
1027
+
====
1028
+
Only JPMS exported packages are part of the supported public API.
1029
+
====
1030
+
If you access non-exported classes (for example by running on the classpath), and we later change or remove them, we will not treat that as a breaking change.
1031
+
Those classes are not covered by compatibility guarantees.
1032
+
1033
+
You can opt-out of JPMS by running all jar-files on the classpath, usually by not including `module-info.jar` file in your own project.
0 commit comments