mirror of
https://github.com/openjdk/jdk.git
synced 2026-02-14 12:25:21 +00:00
8036783: [parfait] JNI exception pending in jdk/src/windows/native/sun/windows/awt_MenuBar.cpp
Reviewed-by: serb, pchelko
This commit is contained in:
parent
a255b4d7a0
commit
0dccaa3eb3
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 1996, 2011, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 1996, 2014, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -268,9 +268,11 @@ Java_java_awt_MenuBar_initIDs(JNIEnv *env, jclass cls)
|
||||
TRY;
|
||||
|
||||
AwtMenuBar::getMenuCountMID = env->GetMethodID(cls, "getMenuCountImpl", "()I");
|
||||
DASSERT(AwtMenuBar::getMenuCountMID != NULL);
|
||||
CHECK_NULL(AwtMenuBar::getMenuCountMID);
|
||||
|
||||
AwtMenuBar::getMenuMID = env->GetMethodID(cls, "getMenuImpl",
|
||||
"(I)Ljava/awt/Menu;");
|
||||
DASSERT(AwtMenuBar::getMenuCountMID != NULL);
|
||||
DASSERT(AwtMenuBar::getMenuMID != NULL);
|
||||
|
||||
CATCH_BAD_ALLOC;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user