Package: kotlin / 1.3.31+ds1-1

Metadata

Package Version Patches format
kotlin 1.3.31+ds1-1 3.0 (quilt)

Patch series

view the series file
Patch File delta Description
066 java9 compatibility 2.patch | (download)

plugins/kapt3/kapt3-base/src/org/jetbrains/kotlin/kapt3/base/incremental/classStructureCache.kt | 15 13 + 2 - 0 !
1 file changed, 13 insertions(+), 2 deletions(-)

 [patch] kt-33889: do not use private non-api methods from
 JavacProcessingEnvironment

Avoid using JavacProcessingEnvironment.validImportStringToPattern method
because it has been removed in JDK9. This commit changes how we compute
pattern to match the class names, and it create instances of Pattern
manually by following spec for Processor.getSupportedAnnotationTypes().
Support for module prefix is not added yet.

067 java17 compatibility.patch | (download)

plugins/kapt3/kapt3-base/src/org/jetbrains/kotlin/kapt3/base/KaptContext.kt | 31 21 + 10 - 0 !
plugins/kapt3/kapt3-base/src/org/jetbrains/kotlin/kapt3/base/javac/KaptJavaLog.kt | 27 18 + 9 - 0 !
plugins/kapt3/kapt3-base/src/org/jetbrains/kotlin/kapt3/base/javac/KaptJavaLog17.kt | 211 211 + 0 - 0 !
plugins/kapt3/kapt3-base/src/org/jetbrains/kotlin/kapt3/base/util/WriterBackedKaptLogger.kt | 2 1 + 1 - 0 !
plugins/kapt3/kapt3-base/src/org/jetbrains/kotlin/kapt3/base/util/java9Utils.kt | 7 6 + 1 - 0 !
plugins/kapt3/kapt3-compiler/test/org/jetbrains/kotlin/kapt3/test/AbstractKotlinKapt3Test.kt | 4 2 + 2 - 0 !
6 files changed, 259 insertions(+), 23 deletions(-)

 [patch] [kapt] add experimental jdk 17 support

 #KT-47583 Fixed

068 pre jdk9 reflection.patch | (download)

plugins/kapt3/kapt3-base/src/org/jetbrains/kotlin/kapt3/base/annotationProcessing.kt | 6 4 + 2 - 0 !
plugins/kapt3/kapt3-base/src/org/jetbrains/kotlin/kapt3/base/javac/KaptJavaLog.kt | 8 4 + 4 - 0 !
plugins/kapt3/kapt3-base/src/org/jetbrains/kotlin/kapt3/base/util/java9Utils.kt | 5 3 + 2 - 0 !
3 files changed, 11 insertions(+), 8 deletions(-)

 use reflection to call pre jdk9 methods.
 This is required to build with JDK 9 or later
069 disable javac wrapper.patch | (download)

compiler/cli/build.gradle | 3 1 + 2 - 0 !
compiler/cli/src/org/jetbrains/kotlin/cli/jvm/K2JVMCompiler.kt | 3 1 + 2 - 0 !
compiler/cli/src/org/jetbrains/kotlin/cli/jvm/compiler/KotlinCoreEnvironment.kt | 6 1 + 5 - 0 !
compiler/cli/src/org/jetbrains/kotlin/cli/jvm/compiler/KotlinToJVMBytecodeCompiler.kt | 15 1 + 14 - 0 !
compiler/cli/src/org/jetbrains/kotlin/cli/jvm/compiler/TopDownAnalyzerFacadeForJVM.kt | 6 0 + 6 - 0 !
compiler/cli/src/org/jetbrains/kotlin/cli/jvm/javac/JavacLogger.kt | 2 1 + 1 - 0 !
compiler/cli/src/org/jetbrains/kotlin/cli/jvm/javac/JavacWrapperKotlinResolverImpl.kt | 61 0 + 61 - 0 !
compiler/cli/src/org/jetbrains/kotlin/cli/jvm/javac/JavacWrapperRegistrar.kt | 71 0 + 71 - 0 !
8 files changed, 5 insertions(+), 162 deletions(-)

 disables the javac wrapper to be able to build with java 17
 As of Kotlin 1.8.0 the wrapper, which is triggered by the -Xuse-javac
 compiler option, is still not compatible with the JDK 17 classes.
070 replace proguard with jarjar.patch | (download)

libraries/reflect/build.gradle | 17 8 + 9 - 0 !
1 file changed, 8 insertions(+), 9 deletions(-)

 replaces proguard with jarjar to assemble the kotlin-reflect jar.
 Proguard 6 is unable to parse the classes of OpenJDK 17, and it looks like
 Kotlin classes are evicted even if minimization is disabled, which breaks the build.
 To be retried with Proguard 7.
071 java8 compatibility.patch | (download)

core/metadata.jvm/src/org/jetbrains/kotlin/metadata/jvm/deserialization/utfEncoding.kt | 2 1 + 1 - 0 !
libraries/stdlib/common/src/generated/_Strings.kt | 34 17 + 17 - 0 !
2 files changed, 18 insertions(+), 18 deletions(-)

 fixes the backward compatibility when running with java 8
 When building with Java 17 the CharSequence.isEmpty() method is used instead of
 the extension method added to the CharSequence class by Kotlin. This causes
 NoSuchMethodErrors at runtime when Kotlin is used with Java 8.
072 tty detection fallback.patch | (download)

compiler/cli/src/org/jetbrains/kotlin/cli/common/messages/PlainTextMessageRenderer.java | 2 1 + 1 - 0 !
1 file changed, 1 insertion(+), 1 deletion(-)

 fall back to another tty detection method if jansi clibrary isn't available