Skip to content
This repository has been archived by the owner on May 26, 2021. It is now read-only.

Should all abstract base classes implement Serializable? #98

Closed
keilw opened this issue Nov 15, 2015 · 5 comments
Closed

Should all abstract base classes implement Serializable? #98

keilw opened this issue Nov 15, 2015 · 5 comments
Labels

Comments

@keilw
Copy link
Member

keilw commented Nov 15, 2015

At the moment AbstractUnit implements Serializable, while at least AbstractConverter doesn't. For converters this is done by concrete classes. Hence a sub-class extending the abstract base class may have to do this by itself.

Somewhat related to #96

@ceefour
Copy link

ceefour commented Mar 10, 2016

👍 for making SE port have Serializable support for all abstract/base classes.

If the APIs can't have Serializable (https://java.net/jira/browse/UNITSOFMEASUREMENT-170) well I guess we have to live with it, but please make abstracts Serializable for SE port.

@keilw
Copy link
Member Author

keilw commented Mar 10, 2016

As the RI must run on Java ME 8 Embedded, I'm afraid that won't work for now. Implementing Serializable will not compile on ME. There are other forms of serializing data, especially JSON which has some ME support, too: http://www.oracle.com/technetwork/articles/javame/index-139356.html

@ceefour
Copy link

ceefour commented Mar 11, 2016

Isn't this repo for "JavaSE 8 and up"?

@keilw
Copy link
Member Author

keilw commented Mar 11, 2016

Yes, the comment was about why the RI won't do this the same way it's intended/asked here.

@ceefour
Copy link

ceefour commented Mar 11, 2016

Thank you :)

@keilw keilw added in progress and removed ready labels Mar 19, 2016
@keilw keilw closed this as completed Mar 23, 2016
@keilw keilw removed the in progress label Mar 23, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants