Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

help #344

Open
chenxqiyu opened this issue Sep 13, 2023 · 1 comment
Open

help #344

chenxqiyu opened this issue Sep 13, 2023 · 1 comment

Comments

@chenxqiyu
Copy link

image

java -jar kotlin2plantuml.jar kotlin.CharCodeKt -cp filename.jar

Exception in thread "main" java.lang.UnsupportedOperationException: Packages and file facades are not yet supported in Kotlin reflection. Meanwhile please use Java reflection to inspect this class: class kotlin.CharCodeKt
at kotlin.reflect.jvm.internal.KClassImpl.reportUnresolvedClass(KClassImpl.kt:310)
at kotlin.reflect.jvm.internal.KClassImpl.access$reportUnresolvedClass(KClassImpl.kt:44)
at kotlin.reflect.jvm.internal.KClassImpl$Data$descriptor$2.invoke(KClassImpl.kt:56)
at kotlin.reflect.jvm.internal.KClassImpl$Data$descriptor$2.invoke(KClassImpl.kt:48)
at kotlin.reflect.jvm.internal.ReflectProperties$LazySoftVal.invoke(ReflectProperties.java:93)
at kotlin.reflect.jvm.internal.ReflectProperties$Val.getValue(ReflectProperties.java:32)
at kotlin.reflect.jvm.internal.KClassImpl$Data.getDescriptor(KClassImpl.kt:48)
at kotlin.reflect.jvm.internal.KClassImpl$Data$supertypes$2.invoke(KClassImpl.kt:125)
at kotlin.reflect.jvm.internal.KClassImpl$Data$supertypes$2.invoke(KClassImpl.kt:124)
at kotlin.reflect.jvm.internal.ReflectProperties$LazySoftVal.invoke(ReflectProperties.java:93)
at kotlin.reflect.jvm.internal.ReflectProperties$Val.getValue(ReflectProperties.java:32)
at kotlin.reflect.jvm.internal.KClassImpl$Data.getSupertypes(KClassImpl.kt:124)
at kotlin.reflect.jvm.internal.KClassImpl.getSupertypes(KClassImpl.kt:254)
at kotlin.reflect.full.KClasses.getSuperclasses(KClasses.kt:184)
at io.github.kelvindev15.kotlin2plantuml.plantuml.ClassHierarchy.(ClassHierarchy.kt:37)
at io.github.kelvindev15.kotlin2plantuml.plantuml.ClassDiagram.(ClassDiagram.kt:14)
at io.github.kelvindev15.kotlin2plantuml.MainKt.main(Main.kt:103)

@kelvin-olaiya
Copy link
Contributor

I suspect that the issue is with the version of Kotlin your jar was compiled with

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants