top | item 42101399

(no title)

J-Kuhn | 1 year ago

Yes, but you would be surprised how many people want to change static final fields for various reasons - be it testing, or other things.

When telling those that it doesn't work, and that it can not work without violating the semantics of the JVM, they will wave their hand and say "look, it does work here". And it looks like, yes, if the stars align in that specific constellation, it may work.

discuss

order

hinkley|1 year ago

Also a part of why Singletons are the black sheep of the Patterns family. They’re nasty during bootstrapping and hell during functional testing.