It seems that after the fix "(CRobotKeyCodeMapping *) sharedInstance"
returns the new object per invocation, so it is not really
sharedInstance. I am not sure I understand what is wrong in the current
code, from the my point of view this is a correct singleton. It it true
that the problem is in access to broken "instance" and not to
"javaToMacKeyMap" inside the "instance"? If not then "javaToMacKeyMap"
should be changed to "self.javaToMacKeyMap".
Do you have a test case to reproduce the bug?
On 19.09.16 15:26, Manajit Halder wrote:
Kindly review the fix for JDK9.
[macosx] VM crashes on second attempt to execute JCK interactive tests
that use Robot (single JVM, agent)
While executing the JCK test for the second time the robot was getting
initialised once again and old instance of CRobotKeyCodeMapping was not
Crash was observed while trying to access invalid instance of
A new instance of CRobotKeyCodeMapping is created when robot is initialised.
Best regards, Sergey.