geotools/geotools — pull request #275 by dewthefifth (2013-09-23 20:10:37+00:00)
Title: Added setLegacy(true) to GML2 Encoding

I'm not sure when it changed, but in version 10-RC2 the GML class requires a "legacy" flag to be set to true before encoding features to GML2.

I've added code to set the flag to true, at least for the "full example"