On Fri, 27 Nov 2026 08:45:14 GMT, Christoph Langer <[email protected]> wrote:

> Looks okish but in case the FormatMessage return value is 0, we would not 
> throw the InternalError as before. Shouldn't it still be thrown but maybe 
> with a dummy message?

In the src/java.desktop/windows/native/libawt/windows/awt_MenuItem.cpp  case we 
throw now bad_alloc (already existing  `if (createError == NULL) {`  case).  I 
think this makes sense.

However in the other file this part seems to be missing; not sure if we should 
add it there too?

-------------

PR Comment: https://git.openjdk.org/jdk/pull/34067#issuecomment-7214053353

Reply via email to