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

Java to Kotlin converter fails in AnnotationConverter #24

Closed
fwcd opened this issue Jun 21, 2018 · 1 comment
Closed

Java to Kotlin converter fails in AnnotationConverter #24

fwcd opened this issue Jun 21, 2018 · 1 comment
Labels
bug Something isn't working
Projects

Comments

@fwcd
Copy link
Owner

fwcd commented Jun 21, 2018

java.lang.NullPointerException
	at org.jetbrains.kotlin.j2k.AnnotationConverter.<init>(AnnotationConverter.kt:31)
	at org.jetbrains.kotlin.j2k.Converter.<init>(Converter.kt:60)
	at org.jetbrains.kotlin.j2k.Converter.<init>(Converter.kt:40)
	at org.jetbrains.kotlin.j2k.Converter$Companion.create(Converter.kt:71)
	at org.jetbrains.kotlin.j2k.JavaToKotlinConverter$elementsToKotlin$intermediateResults$1.invoke(JavaToKotlinConverter.kt:109)
	at org.jetbrains.kotlin.j2k.JavaToKotlinConverter$elementsToKotlin$intermediateResults$1.invoke(JavaToKotlinConverter.kt:48)
	at org.jetbrains.kotlin.j2k.JavaToKotlinConverter$WithProgressProcessor$processItems$1.run(JavaToKotlinConverter.kt:258)
	at com.intellij.openapi.progress.impl.CoreProgressManager.lambda$runProcess$1(CoreProgressManager.java:157)
	at com.intellij.openapi.progress.impl.CoreProgressManager.registerIndicatorAndRun(CoreProgressManager.java:543)
	at com.intellij.openapi.progress.impl.CoreProgressManager.executeProcessUnderProgress(CoreProgressManager.java:488)
	at com.intellij.openapi.progress.impl.CoreProgressManager.runProcess(CoreProgressManager.java:144)
	at org.jetbrains.kotlin.j2k.JavaToKotlinConverter$WithProgressProcessor.processItems(JavaToKotlinConverter.kt:248)
	at org.jetbrains.kotlin.j2k.JavaToKotlinConverter.elementsToKotlin(JavaToKotlinConverter.kt:108)
	at org.jetbrains.kotlin.j2k.JavaToKotlinConverter.elementsToKotlin(JavaToKotlinConverter.kt:94)
	at org.javacs.kt.javaToKotlin.JavaToKotlinConverterKt.convertJavaToKotlin(javaToKotlinConverter.kt:54)
	at org.javacs.kt.KotlinWorkspaceService.executeCommand(KotlinWorkspaceService.kt:40)
	... 16 more

This null pointer might be caused by an incompatible kotlin-converter.jar version. Unfortunately, the JetBrains/kotlin/j2k module has not been published to Maven central, which makes it hard to optain a current version of this dependency.

@fwcd fwcd added the bug Something isn't working label Jun 21, 2018
@fwcd fwcd added this to Todo in Roadmap via automation Jun 21, 2018
@fwcd
Copy link
Owner Author

fwcd commented Jun 29, 2018

j2k

@fwcd fwcd closed this as completed in 9a1ab31 Jun 29, 2018
Roadmap automation moved this from Todo to Done Jun 29, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Roadmap
  
Done
Development

No branches or pull requests

1 participant