All classes that are likely to be cached should be immutable.

Description

Cached objects that are immutable can cause weird problems, if references are updated after the object has been cached. Instead, use immutable objects (the JCIP annotations can help here).

As a bonus, we will prevent most concurrency-related problems when we make stuff immutable.

Environment

None

Activity

Show:
Guus der Kinderen
October 27, 2015, 5:15 PM

This is a generic Good Idea© but not something that requires explicit action.

Daryl Herzmann
October 27, 2015, 3:50 PM

Guus, do you have a current comment on this issue?

Daryl Herzmann
March 3, 2013, 11:39 AM

Guus,

Is this ticket still valid given the recent cluster updates in 3.8.0 ?

daryl

Won't Fix

Assignee

Unassigned

Reporter

Guus der Kinderen