Simulation terminates due to javafx.util.Pair

55 views
Skip to first unread message

PoLiang Wu

unread,
Aug 9, 2018, 12:48:53 PM8/9/18
to YAKINDU User
Hi,

I am using Eclipse Neon.3 Release (4.6.3) with  YAKINDU Statechart Tools 3.3.2.201804191418. My jdk  is jdk1.8.0_144.
My model invokes a method implemented in a separate java file to create a javafx.util.pair. It seems that this call causes the simulation to terminate.

However, when I generate Java code, everything works fine. Is this situation really caused by javafx? Is there any other java libraries will cause the same issue?
Thanks.

Thomas Kutz

unread,
Aug 10, 2018, 4:13:04 AM8/10/18
to YAKINDU User
Hi,

I am using the same JDK and for me javafx.util.Pair is not accessible; I get "Access restriction: The type 'Pair<K,V>' is not API". This is probably the reason why our class loader does not find the class.
I suggest to use the following code instead:

AbstractMap.SimpleEntry<Long, Long> pair = new AbstractMap.SimpleEntry<>(1L, 2L);


Best,
Thomas
Reply all
Reply to author
Forward
0 new messages