You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@velocity.apache.org by Li Xiaoli-a17351 <a1...@motorola.com> on 2001/07/02 04:32:07 UTC

RE: the return of org.apache.velocity.app.Velocity.init(java.lang .StringpropsFilename)

Hi geir

Thanks for your reply. Do you mean the return should be void?

Charley

-----Original Message-----
From: Geir Magnusson Jr. [mailto:geirm@optonline.net]
Sent: 2001年7月2日 10:29
To: velocity-user@jakarta.apache.org
Subject: Re: the return of org.apache.velocity.app.Velocity.init(java.lang.StringpropsFilename)


Li Xiaoli-a17351 wrote:
> 
> Hi
> 
> In java docs, I find clase org.apache.velocity.app.Velocity, the method init()
> public static void init(java.lang.String propsFilename)
>                  throws java.lang.Exception
> 
> can return true if successful, false otherwise.
> 
> But in it's definition, the return type is void, why?
> 

The docs are wrong.  Thanks for the catch!

geir

-- 
Geir Magnusson Jr.                           geirm@optonline.net
System and Software Consulting
Developing for the web?  See http://jakarta.apache.org/velocity/
You have a genius for suggesting things I've come a cropper with!

Re: the return of org.apache.velocity.app.Velocity.init(java.lang.StringpropsFilename)

Posted by "Geir Magnusson Jr." <ge...@optonline.net>.
Li Xiaoli-a17351 wrote:
> 
> Hi geir
> 
> Thanks for your reply. Do you mean the return should be void?

Yes, or another way, there is no return. :)

It will throw an exception if something goes wrong, which will/might be
more meaningful.

geir

-- 
Geir Magnusson Jr.                           geirm@optonline.net
System and Software Consulting
Developing for the web?  See http://jakarta.apache.org/velocity/
You have a genius for suggesting things I've come a cropper with!