Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 80968ee commit 66a8bc5Copy full SHA for 66a8bc5
1 file changed
java/kotlin-extractor/src/main/java/com/semmle/extractor/java/OdasaOutput.java
@@ -521,9 +521,9 @@ private boolean newerThan(TrapClassVersion tcv) {
521
// Classes being compiled from source have major version 0 but should take precedence
522
// over any classes with the same qualified name loaded from the classpath
523
// in previous or subsequent extractor invocations.
524
- if (tcv.majorVersion==0)
+ if (tcv.majorVersion == 0 && majorVersion != 0)
525
return false;
526
- else if (majorVersion==0)
+ else if (majorVersion == 0 && tcv.majorVersion != 0)
527
return true;
528
// Always consider the Kotlin extractor superior to the Java extractor, because we may decode and extract
529
// Kotlin metadata that the Java extractor can't understand:
0 commit comments