[ http://issues.apache.org/jira/browse/VELOCITY-382?page=all ]
Will Glass-Husain updated VELOCITY-382: --------------------------------------- Bugzilla Id: (was: 35286) Fix Version: 1.5 Description: According to the documentation of org.apache.velocity.runtime.resource.loader. getResourceStream(String name), it should throw an ResourceNotFoundException when the resource with the given name can't be found. But the Exception isn't thrown, null is returned as result from the "classLoader.getResourceAsStream( name )" method. was: According to the documentation of org.apache.velocity.runtime.resource.loader. getResourceStream(String name), it should throw an ResourceNotFoundException when the resource with the given name can't be found. But the Exception isn't thrown, null is returned as result from the "classLoader.getResourceAsStream( name )" method. Environment: Operating System: Windows XP Platform: PC was: Operating System: Windows XP Platform: PC Assign To: (was: Velocity-Dev List) Not sure if we should fix the docs or change the behavior. I'd hate to mess any existing users up. > getResourceStream returns null instead of throwing an > ResourceNotFoundException > ------------------------------------------------------------------------------- > > Key: VELOCITY-382 > URL: http://issues.apache.org/jira/browse/VELOCITY-382 > Project: Velocity > Type: Bug > Components: Source > Versions: 1.4 > Environment: Operating System: Windows XP > Platform: PC > Reporter: zpeedy > Fix For: 1.5 > > According to the documentation of org.apache.velocity.runtime.resource.loader. > getResourceStream(String name), it should throw an ResourceNotFoundException > when the resource with the given name can't be found. But the Exception isn't > thrown, null is returned as result from the "classLoader.getResourceAsStream( > name > )" method. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]