diff --git a/nucleus/common/common-util/src/main/java/com/sun/enterprise/util/JDK.java b/nucleus/common/common-util/src/main/java/com/sun/enterprise/util/JDK.java index 261a52283f3..bae7c90f28b 100644 --- a/nucleus/common/common-util/src/main/java/com/sun/enterprise/util/JDK.java +++ b/nucleus/common/common-util/src/main/java/com/sun/enterprise/util/JDK.java @@ -110,7 +110,7 @@ public boolean newerThan(Version version) { } else if (equals(minor, version.minor)) { if (greaterThan(subminor, version.subminor)) { return true; - } else if (subminor == version.subminor) { + } else if (equals(subminor, version.subminor)) { if (greaterThan(update, version.update)) { return true; } @@ -130,7 +130,7 @@ public boolean olderThan(Version version) { } else if (equals(minor, version.minor)) { if (lessThan(subminor, version.subminor)) { return true; - } else if (subminor == version.subminor) { + } else if (equals(subminor, version.subminor)) { if (lessThan(update, version.update)) { return true; }