Merge pull request #10630 from igfoo/igfoo/ver0

Kotlin: Make newerThan symmetric
This commit is contained in:
Ian Lynagh
2022-09-30 10:52:42 +01:00
committed by GitHub

View File

@@ -509,9 +509,9 @@ public class OdasaOutput {
// Classes being compiled from source have major version 0 but should take precedence
// over any classes with the same qualified name loaded from the classpath
// in previous or subsequent extractor invocations.
if (tcv.majorVersion==0)
if (tcv.majorVersion == 0 && majorVersion != 0)
return false;
else if (majorVersion==0)
else if (majorVersion == 0 && tcv.majorVersion != 0)
return true;
// Always consider the Kotlin extractor superior to the Java extractor, because we may decode and extract
// Kotlin metadata that the Java extractor can't understand: