Yury Kamenev
Yury Kamenev
Consider the following class `com.google.common.primitives.Booleans$LexicographicalComparator` in `guava-26.0`: ```java private static enum LexicographicalComparator implements Comparator { ... } ``` In tests for methods of this class in some specific conditions we...
For now, `org.jacodb.api.cfg.JcNewArrayExpr#toString` always returns `new kotlin.Unit`.
Running `org.jacodb.analysis.graph.JcApplicationGraphImpl#methodOf` for the method `jdk.net.UnixDomainPrincipal#toString` leads to the exception: ```java java.lang.StringIndexOutOfBoundsException: String index out of range: 39 at java.base/java.lang.StringLatin1.charAt(StringLatin1.java:48) at java.base/java.lang.String.charAt(String.java:1513) at org.objectweb.asm.Type.getArgumentTypes(Type.java:302) at org.jacodb.impl.cfg.RawInstListBuilder.getBsmHandleArg(RawInstListBuilder.kt:1051) at org.jacodb.impl.cfg.RawInstListBuilder.buildInvokeDynamicInsn(RawInstListBuilder.kt:1072) at org.jacodb.impl.cfg.RawInstListBuilder.buildInstructions(RawInstListBuilder.kt:223)...
It would be very convenient for debugging if introducing an API for retrieving a fully qualified method name for `JcMethod` and `JcTypedMethod`.
Sometimes it is required to extract [`enumConstants`](https://docs.oracle.com/javase/specs/jls/se20/html/jls-8.html#jls-8.9.1) of the particular enum class. In `Java`, it is possible via the `java.lang.Class#getEnumConstants` method. It is proposed to add the same feature to...
Consider the following simple enum: ```java public enum EnumWithFieldExample { OK(200), NOT_FOUND(404); EnumWithFieldExample(int statusCode) { this.statusCode = statusCode; } final int statusCode; } ``` and the following code for analyzing...
Consider the following simple enum: ```java public enum EnumExample { SUCCESS, ERROR } ``` and the following code for analyzing the parameters of its `` method: ```kotlin class EnumTest :...
Steps to reproduce: - Get a type for the `sun.security.ssl.SSLSessionContextImpl$SessionCacheVisitor` class - Take its super interface - Extract type arguments for this super interface Possible code: ```kotlin classpath.findClass("sun.security.ssl.SSLSessionContextImpl\$SessionCacheVisitor").toType().interfaces.single().typeArguments ``` Expected...
Steps to reproduce: - Add the `kotlin-1.7.21` dependency to the analyzing classpath - Get a type for the `kotlin.text.RegexKt$fromInt$1$1` class - Take its super interface - Extract type arguments for...