From 6d1279a1cd2198e6f66998e79275055e917b0e88 Mon Sep 17 00:00:00 2001 From: Theresa Mammarella Date: Fri, 4 Oct 2019 13:44:41 -0400 Subject: [PATCH] Disable LUDCL optimization by default An Issue has been found with LUDCL in OpenJ9. The wrong class loader is cached causing a ClassNotFoundException. Disabling this feature by default until this is resolved. https://github.com/eclipse/openj9/issues/7332 Signed-off-by: Theresa Mammarella --- src/java.base/share/classes/java/io/ObjectInputStream.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/java.base/share/classes/java/io/ObjectInputStream.java b/src/java.base/share/classes/java/io/ObjectInputStream.java index 2752ed018cc..d54dcc5e284 100644 --- a/src/java.base/share/classes/java/io/ObjectInputStream.java +++ b/src/java.base/share/classes/java/io/ObjectInputStream.java @@ -25,7 +25,7 @@ /* * =========================================================================== - * (c) Copyright IBM Corp. 2018,2018 All Rights Reserved + * (c) Copyright IBM Corp. 2018, 2019 All Rights Reserved * =========================================================================== */ @@ -336,12 +336,12 @@ private static class Logging { } - /** if true LUDCL/forName results would be cached, true by default starting Java8 */ + /** if true LUDCL/forName results would be cached, false by default starting Java8 */ private static final class GetClassCachingSettingAction implements PrivilegedAction { public Boolean run() { String property = - System.getProperty("com.ibm.enableClassCaching", "true"); + System.getProperty("com.ibm.enableClassCaching", "false"); return property.equalsIgnoreCase("true"); } }