--- old/jdk/src/java.desktop/windows/native/libawt/windows/awt_Toolkit.cpp 2015-12-16 21:11:28.213735427 +0100 +++ new/jdk/src/java.desktop/windows/native/libawt/windows/awt_Toolkit.cpp 2015-12-16 21:11:28.029735424 +0100 @@ -887,7 +887,7 @@ if (comp != NULL) { comp->SetInputMethod(self, useNativeCompWindow); - comp->ImmAssociateContext((HIMC)context); + comp->ImmAssociateContext((HIMC)(uintptr_t)context); } if (peer != NULL) {