File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
java/kotlin-extractor/src/main/java/com/semmle/extractor/java Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -509,9 +509,9 @@ private boolean newerThan(TrapClassVersion tcv) {
509
509
// Classes being compiled from source have major version 0 but should take precedence
510
510
// over any classes with the same qualified name loaded from the classpath
511
511
// in previous or subsequent extractor invocations.
512
- if (tcv .majorVersion == 0 )
512
+ if (tcv .majorVersion == 0 && majorVersion != 0 )
513
513
return false ;
514
- else if (majorVersion == 0 )
514
+ else if (majorVersion == 0 && tcv . majorVersion != 0 )
515
515
return true ;
516
516
// Always consider the Kotlin extractor superior to the Java extractor, because we may decode and extract
517
517
// Kotlin metadata that the Java extractor can't understand:
You can’t perform that action at this time.
0 commit comments