Fixed
Status Update
Comments
ve...@google.com <ve...@google.com>
ve...@google.com <ve...@google.com> #2
Thanks for bringing this to our attention, this is definitely not intended behavior, we'll try and get a fix for it out soon.
ja...@gmail.com <ja...@gmail.com> #3
Project: platform/frameworks/support
Branch: androidx-main
Author: elifbilgin <
Link:
Supporting ByteBuffer in non-Android & non-JVM platforms.
Expand for full commit details
Supporting ByteBuffer in non-Android & non-JVM platforms.
Since ByteBuffer is a JVM-only API, it was erroneously used in generated code in non-JVM platforms. It has been replaced altogether with a new ByteArrayWrapper class which holds a byte array and replaces the use of a ByteBuffer by implementing equals() and hashcode().
Bug: 367205685
Test: BaseQueryTest
Relnote: Create internal ByteArrayWrapper class to support Relations with ByteBuffer in non-Android & non-JVM platforms.
Change-Id: I755433b8d624c88a6d645d40cf845d9bd3123398
Files:
- M
room/integration-tests/multiplatformtestapp/src/commonTest/kotlin/androidx/room/integration/multiplatformtestapp/test/BaseQueryTest.kt
- M
room/integration-tests/multiplatformtestapp/src/commonTest/kotlin/androidx/room/integration/multiplatformtestapp/test/SampleDatabase.kt
- M
room/room-compiler/src/main/kotlin/androidx/room/ext/xpoet_ext.kt
- M
room/room-compiler/src/main/kotlin/androidx/room/solver/TypeAdapterStore.kt
- A
room/room-compiler/src/main/kotlin/androidx/room/solver/types/ByteArrayWrapperColumnTypeAdapter.kt
- M
room/room-compiler/src/main/kotlin/androidx/room/vo/RelationCollector.kt
- M
room/room-compiler/src/test/test-data/kotlinCodeGen/relations_byteBufferKey.kt
- M
room/room-runtime/api/restricted_current.txt
- M
room/room-runtime/bcv/native/current.txt
- A
room/room-runtime/src/androidUnitTest/kotlin/androidx/room/util/ByteArrayWrapperTest.kt
- A
room/room-runtime/src/commonMain/kotlin/androidx/room/util/ByteArrayWrapper.kt
Hash: c5fc6b2da2301441f4a320485d6bcd763265ce14
Date: Mon Sep 16 15:43:39 2024
ve...@google.com <ve...@google.com>
kc...@google.com <kc...@google.com> #4
The following release(s) address this bug.It is possible this bug has only been partially addressed:
androidx.room:room-compiler:2.7.0-alpha10
androidx.room:room-runtime:2.7.0-alpha10
androidx.room:room-runtime-android:2.7.0-alpha10
androidx.room:room-runtime-macosx64:2.7.0-alpha10
jo...@google.com <jo...@google.com> #5
Issue persists in 2.7.0-alpha11
ap...@google.com <ap...@google.com> #6
Hi, do you have a sample for us to reproduce the same error on our end? Thanks!
Description
Artifact used
Version used: androidx.biometric:biometric:1.0.0-alpha03
Devices/Android versions reproduced on:
Samsung SM-G965F / Android 9
Samsung SM-G960F / Android 9
Samsung SM-N960F / Android 9
- Relevant code to trigger the issue.
```
override fun onAuthenticationError(errorCode: Int, errString: CharSequence) {
// ... my code
}
```
bytecode generated:
```
public onAuthenticationError(ILjava/lang/CharSequence;)V
@Lorg/jetbrains/annotations/NotNull;() // invisible, parameter 1
L0
ALOAD 2
LDC "errString"
INVOKESTATIC kotlin/jvm/internal/Intrinsics.checkParameterIsNotNull (Ljava/lang/Object;Ljava/lang/String;)V
// .. my code
```
cause exception:
```
Fatal Exception: java.lang.IllegalArgumentException: Parameter specified as non-null is null: method kotlin.jvm.internal.Intrinsics.checkParameterIsNotNull, parameter errString
at com.example$callback$1.onAuthenticationError(Unknown Source:3)
at androidx.biometric.BiometricFragment$2$1.run(BiometricFragment.java:82)
at android.os.Handler.handleCallback(Handler.java:873)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:214)
at android.app.ActivityThread.main(ActivityThread.java:6981)
at java.lang.reflect.Method.invoke(Method.java)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:493)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1445)
```