Experimental Java analysis using SymbolsTranslator#4445
Experimental Java analysis using SymbolsTranslator#4445yuriioliinyk4 wants to merge 23 commits intoKotlin:masterfrom
Conversation
| classpath = symbolsTestImplementationResolver.incoming.files + classpath | ||
|
|
||
| // Enable experimental symbols java analysis | ||
| systemProperty("org.jetbrains.dokka.analysis.enableExperimentalSymbolsJavaAnalysis", "true") |
There was a problem hiding this comment.
BTW, @AbdullinAM, I think it might make sense to convert the current logic regarding new KDoc resolution based on org.jetbrains.dokka.analysis.enableExperimentalKDocResolution to also use this approach, to check all tests with new resolution, and not just some of them, to be sure, that we will be able to safely enable the flag by default (#4425)
Also, for both those flags, we might want to support enabling them for IT, like we do for K2 -
There was a problem hiding this comment.
Makes sense, I will create a PR
...pi/src/test/kotlin/org/jetbrains/dokka/analysis/test/jvm/mixed/SampleMixedJvmAnalysisTest.kt
Show resolved
Hide resolved
...jetbrains/dokka/analysis/kotlin/symbols/translators/DefaultSymbolToDocumentableTranslator.kt
Outdated
Show resolved
Hide resolved
...jetbrains/dokka/analysis/kotlin/symbols/translators/DefaultSymbolToDocumentableTranslator.kt
Outdated
Show resolved
Hide resolved
...jetbrains/dokka/analysis/kotlin/symbols/translators/DefaultSymbolToDocumentableTranslator.kt
Show resolved
Hide resolved
|
@yuriioliinyk4 Could you resolve merge conflicts, please? |
…ymbols # Conflicts: # build-logic/src/main/kotlin/dokkabuild.test-k2.gradle.kts # dokka-subprojects/analysis-kotlin-symbols/src/main/kotlin/org/jetbrains/dokka/analysis/kotlin/symbols/translators/DefaultSymbolToDocumentableTranslator.kt # dokka-subprojects/plugin-base/src/test/kotlin/utils/TagsAnnotations.kt
|
I resolved conflicts, review pls last 3 commits. Note that there are few failing tests outside the |
Can you duplicate this annotation in kotlin-as-java and other plugins? |
Partially implements #4246
New experimental flag
org.jetbrains.dokka.analysis.enableExperimentalSymbolsJavaAnalysisis introduced to analyze java usingSymbolsTranslatorinstead ofPsiTranslator.There are ~60 unit tests left that are failing under new experimental flag. Most of them are related to problems with annotations, type conversion in AA (e.g. java's
Objectbecome kotlin'sAny,int[]intoIntArray, etc), modifiers.