Sep. 30th, 2008

java wtf

Sep. 30th, 2008 12:48 pm
juan_gandhi: (Default)
Imagine, your Java Bean subclasses another bean, passing a type parameter; that other bean has a couple of setter/getter methods that take and return the values of the parameter type.

Now, you use your bean with some kind of library that does serialization based on introspection via reflection. What does it know about the superclass bean? That it takes and returns an object, right? So... so we lose! Serialization is okay, default is "toString()", but how about deserialization? Seems like we are clueless there. Shit.

I know the solution: override the setter. But this is stupid.
juan_gandhi: (Default)
Just encountered a couple of Green Peace activists. Have not heard from them for a while. They started talking to me about Kimberley Clark forest (see their site). I asked them where is that Kimberley Clark forest. They said it is in Alaska and Canada. I asked where in Alaska and Canada. They said it is between Ottawa and Alaska. I rest my case.

That's what is sad about those idiots. That they are idiots. Otherwise, I'd support them with all my heart.

Profile

juan_gandhi: (Default)
Juan-Carlos Gandhi

September 2025

S M T W T F S
 1 2345 6
78 9 10 111213
14 151617181920
21222324252627
282930    

Most Popular Tags

Style Credit

Expand Cut Tags

No cut tags
Page generated Sep. 17th, 2025 03:47 am
Powered by Dreamwidth Studios