All the posts and topics that contain only an error report will be moved here after the error is corrected. This is to ensure that when users view a question in ETS Viewer, the "Discuss" button will not indicate the presence of a discussion that adds no value to the question.
Moderators: Site Manager , fjwalraven
ssszzz
Posts: 13 Joined: Wed Jun 14, 2017 1:56 pm
Contact:
Post
by ssszzz » Sun Jun 25, 2017 2:08 pm
Hello
It seems the following statement is wrong:
To customize the behavior of class serialization, the readObject and writeObject methods should be overridden.
since there is nothing about overriding, see
https://docs.oracle.com/javase/8/docs/a ... tream.html
as a proof the code below produces an error 'method does not override or implement a method from a supertype':
Code: Select all
@Override
private void readObject(ObjectInputStream stream) throws IOException, ClassNotFoundException {
// nothing
}
admin
Site Admin
Posts: 10065 Joined: Fri Sep 10, 2010 9:26 pm
Contact:
Post
by admin » Sun Jun 25, 2017 11:19 pm
You are right. It should say "implemented". Fixed.
thank you for your feedback!
Paul.
If you like our products and services, please help us by posting your
review here .
Users browsing this forum: No registered users and 46 guests