Skip to content

Commit 74cc36d

Browse files
235 Fix Java pre 14 (#236)
1 parent 247c2a3 commit 74cc36d

File tree

5 files changed

+14
-10
lines changed

5 files changed

+14
-10
lines changed

compiler-plugin/src/main/kotlin/tech/mappie/ir/resolving/classes/sources/ImplicitClassMappingSourcesCollector.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ class ImplicitClassMappingSourcesCollector(private val context: MappieContext)
4040

4141
private fun IrFunction.isJavaGetter(): Boolean {
4242
if (isFromJava()) {
43-
if (parentAsClass.isSubclassOf(context.pluginContext.referenceClass(CLASS_ID_RECORD)!!)) {
43+
if (context.pluginContext.referenceClass(CLASS_ID_RECORD)?.let { parentAsClass.isSubclassOf(it) } ?: false) {
4444
return parentAsClass.primaryConstructor!!.parameters.any { it.name == name }
4545
}
4646
}

gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
version=2.2.0-1.4.0
1+
version=2.2.0-1.4.1
22

33
org.gradle.configuration-cache=true
44
org.gradle.configuration-cache.parallel=true

kotlin-js-store/package-lock.json

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

kotlin-js-store/wasm/package-lock.json

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

website/src/changelog.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22
title: "Changelog"
33
layout: "layouts/changelog.html"
44
changelog:
5+
- date: "2025-08-11"
6+
title: "v2.2.0-1.4-1"
7+
items:
8+
- "[#235](https://github.com/Mr-Mappie/mappie/issues/235) Fixed compatibility with pre Java 14."
59
- date: "2025-07-31"
610
title: "v2.2.0-1.4-0"
711
items:

0 commit comments

Comments
 (0)