android / android/android-test
Allow multiple calls to `Intents.release()` without matching calls to `init()`
- Lingua principale
- Java
- Stelle
- 1.2k
- Fork
- 342
- Merge medio
- 11h 29m
- PR unite (30g)
- 2
Descrizione
### Description
[1.3.0 release notes ](https://developer.android.com/jetpack/androidx/releases/test#1.3.0)say:
> Allow Intents.release without Intents.init
### Steps to Reproduce
This code
```
Intents.init()
Intents.release()
Intents.release()
```
### Expected Results
Allowed, no error.
### Actual Results
Exception on the second call to `release`:
```
java.lang.IllegalStateException: init() must be called prior to using this method.
at androidx.test.espresso.intent.Checks.checkState(Checks.java:70)
at androidx.test.espresso.intent.Intents.internalRelease(Intents.java:331)
at androidx.test.espresso.intent.Intents.release(Intents.java:142)
```
### AndroidX Test and Android OS Versions
AndroidX Test 1.3.0, API 23
Guida per i contributori
Apri la guida per i contributori
Direzione di ricerca
Read androidx.test.espresso.intent.Intents.internalRelease in Intents.java around line 331 and Checks.checkState in Checks.java:70, then reproduce the three-call sequence from the issue. Done means repeated Intents.release() calls after one init() complete without an IllegalStateException.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- java
- Ambito
- mobile-dev, testing
- Tipo di issue
- Bug
- Difficoltà
- 2/5
- Tempo stimato
- 1-3 ore
- Stato di attività
- Ferma
- Chiarezza
- Specificata chiaramente
- Idoneità per principianti
- 35/100