You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lenya.apache.org by Michael Wechner <mi...@wyona.com> on 2006/02/23 14:05:20 UTC

a lot of deprecation warnings for 1.4

Hi

When I currently build Lenya 1.4 then I receive a lot of deprecation 
warnings:

/home/michi/src/apache/lenya/lenya_1_4_x/src/java/org/apache/lenya/cms/task/TaskParameters.java:38: 
warning: org.apache.lenya.cms.task.Task in org.apache.lenya.cms.task has 
been deprecated
            Task.PARAMETER_SERVER_URI, Task.PARAMETER_SERVER_PORT, 
Task.PARAMETER_CONTEXT_PREFIX,
                                                                   ^
/home/michi/src/apache/lenya/lenya_1_4_x/src/java/org/apache/lenya/cms/task/TaskParameters.java:39: 
warning: org.apache.lenya.cms.task.Task in org.apache.lenya.cms.task has 
been deprecated
            Task.PARAMETER_PUBLICATION_ID };
            ^
/home/michi/src/apache/lenya/lenya_1_4_x/src/java/org/apache/lenya/cms/task/TaskParameters.java:79: 
warning: org.apache.lenya.cms.task.Task in org.apache.lenya.cms.task has 
been deprecated
                    get(Task.PARAMETER_PUBLICATION_ID));
                        ^
164 warnings


How can we fix this, resp. what are the right classes to use?

Thanks

Michi

-- 
Michael Wechner
Wyona      -   Open Source Content Management   -    Apache Lenya
http://www.wyona.com                      http://lenya.apache.org
michael.wechner@wyona.com                        michi@apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lenya.apache.org
For additional commands, e-mail: dev-help@lenya.apache.org


Re: a lot of deprecation warnings for 1.4

Posted by Andreas Hartmann <an...@apache.org>.
Michael Wechner wrote:
> Hi
> 
> When I currently build Lenya 1.4 then I receive a lot of deprecation 
> warnings:
> 
> /home/michi/src/apache/lenya/lenya_1_4_x/src/java/org/apache/lenya/cms/task/TaskParameters.java:38: 
> warning: org.apache.lenya.cms.task.Task in org.apache.lenya.cms.task has 
> been deprecated
>            Task.PARAMETER_SERVER_URI, Task.PARAMETER_SERVER_PORT, 
> Task.PARAMETER_CONTEXT_PREFIX,
>                                                                   ^
> /home/michi/src/apache/lenya/lenya_1_4_x/src/java/org/apache/lenya/cms/task/TaskParameters.java:39: 
> warning: org.apache.lenya.cms.task.Task in org.apache.lenya.cms.task has 
> been deprecated
>            Task.PARAMETER_PUBLICATION_ID };
>            ^
> /home/michi/src/apache/lenya/lenya_1_4_x/src/java/org/apache/lenya/cms/task/TaskParameters.java:79: 
> warning: org.apache.lenya.cms.task.Task in org.apache.lenya.cms.task has 
> been deprecated
>                    get(Task.PARAMETER_PUBLICATION_ID));
>                        ^
> 164 warnings
> 
> 
> How can we fix this, resp. what are the right classes to use?

The deprecation messages shall detain users from using the old Task framework.
I already added a note to the @deprecated tags to use the usecase framework
instead.

-- Andreas

-- 
Andreas Hartmann
Wyona Inc.  -   Open Source Content Management   -   Apache Lenya
http://www.wyona.com                      http://lenya.apache.org
andreas.hartmann@wyona.com                     andreas@apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lenya.apache.org
For additional commands, e-mail: dev-help@lenya.apache.org