Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make jbanking serializable-friendly #53

Closed
marcwrobel opened this issue Sep 28, 2020 · 0 comments
Closed

Make jbanking serializable-friendly #53

marcwrobel opened this issue Sep 28, 2020 · 0 comments
Milestone

Comments

@marcwrobel
Copy link
Owner

Serialization in java is a difficult thing to master and should be avoided if possible (see also Effective Java 3rd edition - Item 85 : Prefer alternatives to java serialization). Despite that, many classes in jbanking, such as Iban, Bic, CreditorIdentifier..., are good candidates for default serialized form.

Those classes should implement Serializable in order to make some parts of jbanking usable with :

  • frameworks that relies on serialization,
  • exceptions (the java.lang.Exception extends Serializable),
  • servlet containers (the servlet specification requires that all objects stored in the session be serializable),
  • ...
@marcwrobel marcwrobel self-assigned this Sep 28, 2020
@marcwrobel marcwrobel added this to the 2.2.0 milestone Sep 28, 2020
marcwrobel added a commit that referenced this issue Sep 28, 2020
Bic, Iban, CreditorIdentifier and SwiftPattern has been made serializable and all serializable classes, except enums, now declare a serialVersionUID field.
marcwrobel added a commit that referenced this issue Sep 28, 2020
Bic, Iban, CreditorIdentifier and SwiftPattern has been made serializable and all serializable classes, except enums, now declare a serialVersionUID field.
@marcwrobel marcwrobel modified the milestones: 2.2.0, 3.0.0 Oct 17, 2020
@marcwrobel marcwrobel removed their assignment Jun 30, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant