You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm using a build of the latest commit to the develop branch (317e74b).
Describe the bug
When attempting to decompile some kotlin code which has conflicting names (at least this is what I'm guessing the issue is from the stack trace), a StackOverflow will occur.
the full log emitted by vineflower (vineflower.log)
fernflower, quiltflower, and vineflower folders containing the decompiled code that they each emit
Notes:
the project I am working in was using ktor, so to compile that class file you'd need to add that as a dependency.
currently the project is private, however it will eventually™ be open sourced. when I do make it open source, I can provide a link to the project. however the project will be released under the AGPL.
fernflower and quiltflower can successfully decompile the class (both executed with [tool] Routes*.class [tool]/ where [tool] is either fernflower or quiltflower)
the sample provided is a minimal sample and afaik cannot be reduced further
I am hereby releasing the code (& binaries) in the tarball under the following licenses. Choose whichever one you want.
Public Domain (ik whether or not smth can be released to the public domain depends on jurisdiction, which is why I've also provided the other licenses
CC0
The Unlicense
Here is what is logged when decompiling it (some things omitted for brevity. see the attached tarball for a full log):
INFO: Loaded 3 plugins
INFO: JVM info: Eclipse Adoptium - 21.0.5 - 21.0.5+11-LTS
INFO: Scanning classes from Java runtime current
INFO: Scanning classes from module [email protected]
[several "scanning classes from module ..." omitted]
INFO: Scanning classes from file RoutesKt$configureRoutes$1$1$1.class
INFO: Loading Class: gay/solonovamax/syrup/routes/RoutesKt$configureRoutes$1$1$1 from file RoutesKt$configureRoutes$1$1$1.class
INFO: Scanning classes from file RoutesKt.class
INFO: Loading Class: gay/solonovamax/syrup/routes/RoutesKt from file RoutesKt.class
INFO: Preprocessing class gay/solonovamax/syrup/routes/RoutesKt
INFO: Loading Class: java/lang/Object from module [email protected]
INFO: ... done
INFO: Decompiling class gay/solonovamax/syrup/routes/RoutesKt
WARN: Class null couldn't be written.
java.lang.StackOverflowError
at org.jetbrains.java.decompiler.modules.decompiler.vars.VarDefinitionHelper.iterateClashingExprent(VarDefinitionHelper.java:1694)
at org.jetbrains.java.decompiler.modules.decompiler.vars.VarDefinitionHelper.iterateClashingNames(VarDefinitionHelper.java:1492)
at org.jetbrains.java.decompiler.modules.decompiler.vars.VarDefinitionHelper.iterateClashingNames(VarDefinitionHelper.java:1541)
at org.jetbrains.java.decompiler.modules.decompiler.vars.VarDefinitionHelper.iterateClashingNames(VarDefinitionHelper.java:1541)
at org.jetbrains.java.decompiler.modules.decompiler.vars.VarDefinitionHelper.iterateClashingNames(VarDefinitionHelper.java:1541)
at org.jetbrains.java.decompiler.modules.decompiler.vars.VarDefinitionHelper.iterateClashingExprent(VarDefinitionHelper.java:1672)
at org.jetbrains.java.decompiler.modules.decompiler.vars.VarDefinitionHelper.iterateClashingNames(VarDefinitionHelper.java:1492)
[last 3 lines repeated many times]
INFO: ... done
The text was updated successfully, but these errors were encountered:
Vineflower version
I'm using a build of the latest commit to the develop branch (317e74b).
Describe the bug
When attempting to decompile some kotlin code which has conflicting names (at least this is what I'm guessing the issue is from the stack trace), a
StackOverflow
will occur.Additional information
Download a tarball of the following things:
RoutesKt.class
RoutesKt$configureRoutes$1$1$1.class
(nice naming, kotlin)Routes.kt
vineflower.log
)fernflower
,quiltflower
, andvineflower
folders containing the decompiled code that they each emitNotes:
[tool] Routes*.class [tool]/
where[tool]
is eitherfernflower
orquiltflower
)Here is what is logged when decompiling it (some things omitted for brevity. see the attached tarball for a full log):
The text was updated successfully, but these errors were encountered: