Files
codeql/java/ql/test/kotlin/library-tests/internal-constructor-called-from-java/test.ql
Chris Smowton 00800017fd Kotlin: make internal constructors' trap labels consistent with the Java extractor
Previously we accidentally named these something like <init>$main, which is a name-mangling the Kotlin compiler applies to internal methods but not to constructors, which look to Java just like regular public constructors.
2022-10-21 16:48:37 +01:00

5 lines
80 B
Plaintext

import java
from ClassInstanceExpr ce
select ce, ce.getConstructor().getBody()