- A Concurrent Affair - https://www.concurrentaffair.org -

Bitchy

Java is being bitch about adding and initializing fields in Object. But why should these things be easy anyway? It’s a frickin’ field, after all… I’m going to bed.

Update

Argh… I woke up and realized I may have to make the field transient so that it doesn’t get serialized. Nope. Wasn’t it. Having my hopes crushed is so heart-breaking.

Update

Ok… apparently it just isn’t possible to add fields to java.lang.Object. I guess now my alternative strategy is to add a field to every class that extends java.lang.Object. Weee!

[1] [2]Share [3]