> -----Original Message-----
> From: Matt Raible [mailto:[EMAIL PROTECTED]
> Sent: October 20, 2003 10:35 AM
> To: [EMAIL PROTECTED]
> Subject: Upgrading from 1.1 to Nightly Build
>
>
> I upgraded from 1.1 to last night's build and discovered a whole bunch
> of steps needed to upgrade.
>
> http://tinyurl.com/rmai
>
> I ended up with 3 issues in the end.  They are as follows:
>
> 1. org.apache.struts.tiles.Controller requires you to implement both
> execute and perform - even though perform is deprecated.

That's because it's an interface and you *have* to implement the interface
methods. Can you not just extend ControllerSupport? It implements both
methods but the default behaviour for perform is just to call execute,
saving you the need to implement it yourself. (This is the same way that
Action was modified).

> 2. org.apache.lang.math.NumberUtils.stringToInt(String) has been
> deprecated according to the compiler.  Not according to its javadocs
> (http://tinyurl.com/rmci)

The JavaDoc on the website doesn't neccessarily reflect the latest source.
The CVS version has it deprecated:

     * @deprecated Use [EMAIL PROTECTED] #toInt(String)}
     *  This method will be removed in Commons Lang 3.0
     */
    public static int stringToInt(String str) {
        return toInt(str);
    }

> 3.  ValidatorForm.getFieldMap() is deprecated, and there's no signs
> that a replacement exists.

Again, the online Javadoc may not reflect the latest source. From CVS
version:

    /**
     * The <code>Field</code>s are returned as an unmodifiable
<code>Map</code>.
     * @deprecated Use containsField(String) and getField(String) instead.
     */
    public Map getFieldMap() {
        return Collections.unmodifiableMap(hFields);
    }

HTH

Steve



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to