# HG changeset patch # User Mike Becker # Date 1730553825 -3600 # Node ID 155cd224b51d5881078f65bcba00a0d04eab6798 # Parent 0e3827ebc6e4e18f48460e7ad9857b787c1d50b2 fix incorrect compatibility check for major versions diff -r 0e3827ebc6e4 -r 155cd224b51d src/main/java/de/unixwork/uwproj/CompatibilityCheck.java --- a/src/main/java/de/unixwork/uwproj/CompatibilityCheck.java Sat Nov 02 14:22:05 2024 +0100 +++ b/src/main/java/de/unixwork/uwproj/CompatibilityCheck.java Sat Nov 02 14:23:45 2024 +0100 @@ -21,7 +21,7 @@ public static void check(String expected, String actual) throws CompatibilityException { final var expectedVer = versionParts(expected); final var actualVer = versionParts(actual); - if (expectedVer[0] > actualVer[0] || expectedVer[1] > actualVer[1]) { + if (expectedVer[0] != actualVer[0] || expectedVer[1] > actualVer[1]) { if (actual.isBlank()) actual = "unspecified"; throw new CompatibilityException("Expected project file version '" + expected + "' but got '" + actual + "'."); }