[Opensource] Controller.getString() deprecated?
Mike Traum
mtraum at cirnetwork.org
Thu Aug 15 11:37:57 PDT 2002
I asked about this one too. It's a typo - it's actually
ControllerResponse.getString().
Just as a reminder, the search capabilities of this list is now functional
at http://mail.jcorporate.com/pipermail/opensource/ .
Mike
-----Original Message-----
From: opensource-admin at jcorporate.com
[mailto:opensource-admin at jcorporate.com]On Behalf Of Itamar Almeida de
Carvalho
Sent: Wednesday, August 14, 2002 11:59 PM
To: opensource at jcorporate.com
Subject: [Opensource] Controller.getString() deprecated?
When I compile some controllers, I'm receiving an "deprecated" warning,
so I compiled it with "-deprecation", and the message was:
-----------------------------
LoginController.java:60: warning: getString(java.lang.String) in
com.jcorporate.expresso.core.controller.Controller has been deprecated
dbContext.setLabel(getString("Context/Database_"));
-----------------------------
Actually, the JavaDoc says:
-----------------------------
com.jcorporate.expresso.core.controller.Controller
(...)
getString(String stringCode, Object[] args)
Deprecated. Use ControllerRequest.getString(String, Object[]
instead, this is able to return the local language by considering the
user as well.
-----------------------------
But at ControllerRequest there isn't a "getString()" method:
-----------------------------
src/controller/LoginController.java [60] cannot resolve symbol
symbol : method getString (java.lang.String)
location: class
com.jcorporate.expresso.core.controller.ControllerRequest
dbContext.setLabel(request.getString("Context/Database_"));
-----------------------------
I'm still using Controller.getString() for now, but how can I get rid of
this "deprecated" message?
Best regards,
--
Itamar Almeida de Carvalho
Desenvolvimento de Sistemas
itamar at oktiva.com.br - (+85) 281-2223
Oktiva Telecomunicações e Informática Ltda
http://www.oktiva.com.br
More information about the Opensource
mailing list