--- old/src/java.desktop/windows/native/libawt/windows/awt_Frame.cpp 2018-09-30 07:53:03.647000000 +0530 +++ new/src/java.desktop/windows/native/libawt/windows/awt_Frame.cpp 2018-09-30 07:53:03.379000000 +0530 @@ -1182,7 +1182,7 @@ //when reseting from specific icon to class icon //taskbar is not updated if (iconType <= 2 /*ICON_SMALL2*/) { - retVal = (LRESULT)GetEffectiveIcon(iconType); + retVal = (LRESULT)GetEffectiveIcon(static_cast(iconType)); return mrConsume; } else { return mrDoDefault;