Skip to content

Commit

Permalink
Disable LUDCL by default
Browse files Browse the repository at this point in the history
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. eclipse-openj9/openj9#7332

Signed-off-by: Theresa Mammarella <Theresa.T.Mammarella@ibm.com>
  • Loading branch information
theresa-m committed Oct 4, 2019
1 parent a9b8b4c commit 0631e65
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/java.base/share/classes/java/io/ObjectInputStream.java
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@

/*
* =======================================================================
* (c) Copyright IBM Corp. 2018, 2018 All Rights Reserved
* (c) Copyright IBM Corp. 2018, 2019 All Rights Reserved
* =======================================================================
*/

Expand Down Expand Up @@ -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<Boolean> {
public Boolean run() {
String property =
System.getProperty("com.ibm.enableClassCaching", "true");
System.getProperty("com.ibm.enableClassCaching", "false");
return property.equalsIgnoreCase("true");
}
}
Expand Down

0 comments on commit 0631e65

Please sign in to comment.