[Opensource] Controller.getString() deprecated?

Itamar Almeida de Carvalho itamar at oktiva.com.br
Wed Aug 14 21:58:47 PDT 2002


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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 232 bytes
Desc: not available
Url : http://mailman.jcorporate.com/pipermail/opensource/attachments/20020815/56648557/attachment-0002.bin


More information about the Opensource mailing list