java.lang.AssertionError for Google Guava Put and Remove Operation
envgap__google__guava-8345
01 / FAILURE SIGNATURE
As reported upstream
Android runtime error: java.lang.AssertionError for Google Guava Put and Remove Operation
Not a benchmark task.
- The project already builds and runs before the fix, so there is nothing to repair.
02 / ENVIRONMENT RECIPE
- Base commit
9ac0f0422f0cae0116960a082d5a1026abe15039- Manifest
android/guava/pom.xml- Reproduce
Awaiting issue-specific recipe- Run under trace
Awaiting a meaningful runtime command
03 / ORIGINAL ISSUE TEXT
google/guava #8345 · read the original issue
### Guava Version
33.3.1-android
### Description
Hello,
recently I have faced `java.lang.AssertionError` for my android application release apk.
I have updated the following items for this year
1. Apply ProGuard rules and enabled minify true for release apk
2. Update android sdk version to 37
Every year I updated my sdk version but didn't face this type of issue. I suspect the main cause of apply ProGuard rules and enabled minify true for release apk.
Would you please help me to solve this issue?
### Example
```java
LoadingCache<Key, Graph> graphs = CacheBuilder.newBuilder()
.expireAfterWrite(1, TimeUnit.MINUTES)
.build(
new CacheLoader<Key, Graph>() {
public Graph load(Key key) throws AnyException {
return createExpensiveGraph(key);
}
});
public void put(Key key, Graph value) {
graphs.put(key, value);
}
public Graph get(Key key) {
return graphs.getIfPresent(key);
}
```
### Expected Behavior
Should work it properly without any exception.
### Actual Behavior
Android runtime error: java.lang.AssertionError for Google Guava Put and Remove Operation
### Packages
_No response_
### Platforms
_No response_
### Checklist
- [x] I agree to follow the [code of conduct](https://github.com/google/.github/blob/master/CODE_OF_CONDUCT.md).
- [x] I can reproduce the bug with the [latest](https://github.com/google/guava/releases/latest) version of Guava available.
04 / LABELS
Labels from the report text only; not yet run
No supported category has been assigned.
Label rules and the text that matched
[]