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:
parent
1bab9425ed
commit
2c79bd5892
@ -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.
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||||
*
|
*
|
||||||
* This code is free software; you can redistribute it and/or modify it
|
* 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 k = jk.getJSJavaClass();
|
||||||
JSJavaObject l = factory.newJSJavaObject(loader);
|
JSJavaObject l = factory.newJSJavaObject(loader);
|
||||||
if (k != null) {
|
if (k != null) {
|
||||||
if (k != null) {
|
if (l != null) {
|
||||||
try {
|
try {
|
||||||
finalFunc.call(new Object[] { k, l });
|
finalFunc.call(new Object[] { k, l });
|
||||||
} catch (ScriptException exp) {
|
} catch (ScriptException exp) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user