Sunday, July 8

One good thing about J2SE 6

I just installed the "J2SE 6.0 R1 Developer Preview" for OS X 10.4, because the Point2D.Float class now implements the Serializable interface. I know it's not such a big deal, since I could've coded an extended class.. but anyways, I love to have the latest dev tools, just in case.

Thing is, I'm currently coding a Java/Swing based tool for Kana DS , and I was trying to serialize a class hierarchy that contained an array of Point2D.Float. It seemed to me quite stupid that in J2SE 5.0, Point2D.Float lacked out-of-the-box serializability, whereas Point2D(for integers) didn't.

Here ends the rant of the day : )

No comments: