Sunday, August 31, 2008

XStream Deserialization

When calling XStream.fromXML() to deserialize an object, XStream by default will use ReflectionConverter to populate the fields of the given root object instead of instantiating a new one. To force instantiation of a new object, use

XStream xstream = XStream(new PureJavaReflectionProvider());

Cheap journalism

VietNamNet (VNN) today has an article about Vietnam's National Day. At the end of the article the following was added

"The Governor of the US’s California State, Arnold Schawarzeneger, on August 28 sent a message of greetings to the Vietnamese Consul General in San Francisco, expressing his thanks for the Vietnamese community’s contributions to the state’s development."

Is Arnold losing it? What the fuck does the Vietnamese Consul General have anything to do with the Viet's contributions to the state of CA and how it's related to Vietnam's National Day celebration is out of grasp. Cheap, cheap journalism at its worst.

Remains in Vietnam could be Australian soldier

If this turns out to be true, the effort to locate the last Australian soldier missing in the Vietnam war would be completed. Well done