apache / apache/accumulo

Warnings: non-transient instance field of a serializable class declared with a non-serializable type

Open
#2,776 7 comments 0 reactions 1 assignee Claimed by @milleruntime View on GitHub
bug
Dominant language
Java
Stars
1.2k
Forks
487
Avg merge
4d 5h
Merged PRs (30d)
13

Description

java: non-transient instance field of a serializable class declared with a non-serializable type


These warnings will need to be fixed. Building with Java 18 showed the warnings in these classes:

- [x] ByteSequence.java
- [x] MutationsRejectedException.java
- [ ] TableInfo.java
- [ ] CloneInfo.java
- [ ] NamespaceInfo.java
- [ ] ImportedTableInfo.java
- [x] TimedOutException
- [x] TabletLocationState

These are all `Serializable` classes that have non-serializable types. For instance:
https://github.com/apache/accumulo/blob/cf57e343de77f416de10c22e0ed05ef37f433b36/core/src/main/java/org/apache/accumulo/core/security/Authorizations.java#L47-L48

Edit: Merged #2777 so added ByteSequence

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.