7107018: sun.jvm.hotspot.utilities.soql.JSJavaHeap.forEachClass incorrect test

Correction for incorrect double checking of ‘k’ not being null.

Reviewed-by: dsamersoff, rehn
This commit is contained in:
Jini George 2016-11-09 09:30:27 +03:00 committed by Dmitry Samersoff
parent 1bab9425ed
commit 2c79bd5892

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2004, 2007, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2004, 2016, 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
@ -177,7 +177,7 @@ public class JSJavaHeap extends DefaultScriptObject {
JSJavaObject k = jk.getJSJavaClass();
JSJavaObject l = factory.newJSJavaObject(loader);
if (k != null) {
if (k != null) {
if (l != null) {
try {
finalFunc.call(new Object[] { k, l });
} catch (ScriptException exp) {