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

November 2025

S M T W T F S
       1
23456 7 8
9 1011 12 1314 15
16171819 20 2122
23242526272829
30      

Most Popular Tags

Style Credit

Expand Cut Tags

No cut tags
Page generated Nov. 23rd, 2025 07:20 pm
Powered by Dreamwidth Studios