You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@maven.apache.org by bo...@werken.com on 2002/12/10 23:49:42 UTC

[maven-bug] New comment: (MAVEN-172) Catch MissingResourceException when doing ResourceBundle.getBundle()

The following comment has been added to this issue:

     Author: Aslak Hellesøy
    Created: Tue, 10 Dec 2002 4:49 PM
       Body:
I can't see that this patch has been applied. I hope you didn't reject it because of a couple of braces.
---------------------------------------------------------------------
View the issue:

  http://jira.werken.com/secure/ViewIssue.jspa?key=MAVEN-172


Here is an overview of the issue:
---------------------------------------------------------------------
        Key: MAVEN-172
    Summary: Catch MissingResourceException when doing ResourceBundle.getBundle()
       Type: Improvement

     Status: Closed
   Priority: Major
 Resolution: FIXED

 Time Spent: Unknown
   Estimate: 0 minutes

    Project: maven
  Component: None
   Versions:
             1.0-beta-8

   Assignee: Jason van Zyl
   Reporter: Aslak Hellesøy

    Created: Tue, 10 Dec 2002 2:17 PM
    Updated: Tue, 10 Dec 2002 3:05 PM
Environment: Win2K, jdk1.3.1_06/j2sdk1.4.1_01

Description:
org.apache.maven.MavenUtils.loadMessages() should catch MissingResourceException instead of checking for nullity. If a bundle isn't found, MissingResourceException is thrown, but null is never returned as the code suggests. See http://java.sun.com/j2se/1.4.1/docs/api/java/util/ResourceBundle.html#getBundle(java.lang.String)

This patch fixes this bug.


---------------------------------------------------------------------
JIRA INFORMATION:
This message is automatically generated by JIRA.

If you think it was sent incorrectly contact one of the administrators:
   http://jira.werken.com/Administrators.jspa

If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira