[jdom-interest] [Fwd: More JDOM changes]

Geir Magnusson Jr. geirm at optonline.net
Thu Feb 19 11:05:59 PST 2004

On Feb 18, 2004, at 5:50 PM, Jason Hunter wrote:

> As I wrote in a separate mail to a smaller set of addresses, the  
> setEncoding() method just moved for the Format class.  The  
> functionality is still there.
> The setEncoding() method was actually deprecated quite a while ago, in  
> early May 2003 per CVS logs.  We removed it from CVS recently after  
> the Beta 10 release (we deprecate for one beta cycle) in preparation  
> for a clean 1.0 release.  So you can either build against Beta 10 or  
> continue to use HEAD and just change your usage (what I recommend).

I'm making the change now.  Quick Q : why isn't there a getFormat() in  
XMLOutputter?  Wouldn't someone want to be able to get the current  
Format and modify it?

> -jh-
> Antoine Lévy-Lambert wrote:
>> Hello,
>> Please read the email of Stefan Bodewig from the gump list.
>> concerning Velocity, the anakiatask has a class OutputWrapper which  
>> extends
>> org.jdom.output.XMLOutputter
>> and relies on XMLOutputter supplying the setEncoding method.
>> Slide has 2 classes which use XMLOutputter#setEncoding
>> I do not know jdom, but it seems to me that it would be fair to  
>> restore the setEncoding method in XMLOutputter and give some time to  
>> slide and velocity to remove the usages of this method.
>> Comments ?
>> Antoine
>> [1] velocity build failure visible on this URL :  
>> http://gump.cocoondev.org/jakarta-velocity.html
>> [2] source code of AnakiaTask  
>> http://cvs.apache.org/viewcvs.cgi/*checkout*/jakarta-velocity/src/ 
>> java/org/apache/velocity/anakia/AnakiaTask.java?content- 
>> type=text%2Fplain&rev=1.34 [3]  source code of OutputWrapper  
>> http://cvs.apache.org/viewcvs.cgi/*checkout*/jakarta-velocity/src/ 
>> java/org/apache/velocity/anakia/OutputWrapper.java?content- 
>> type=text%2Fplain&rev=1.6 [4] build failure of  
>> http://gump.cocoondev.org/jakarta-slide.html
>> -------- Original Message --------
>> Subject:     More JDOM changes
>> Date:     Wed, 18 Feb 2004 12:36:34 +0100
>> From:     Stefan Bodewig <bodewig at apache.org>
>> Reply-To:     Gump code and data <gump at jakarta.apache.org>
>> To:     gump at jakarta.apache.org
>> Hi,
>> it seems as if the JDOM saga continues, XMLOutputter#setEncoding has
>> been removed leading to build failures in Velocity and Slide.  The
>> method has been deprecated in beta10rc1 (maybe even beta9) and people
>> are now expected to use the Format instead.
>> Stefan
>> _______________________________________________
>> To control your jdom-interest membership:
>> http://lists.denveronline.net/mailman/options/jdom-interest/ 
>> youraddr at yourhost.com
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: velocity-dev-unsubscribe at jakarta.apache.org
> For additional commands, e-mail: velocity-dev-help at jakarta.apache.org
Geir Magnusson Jr                                   203-247-1713(m)
geir at 4quarters.com

More information about the jdom-interest mailing list