james-server-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Niklas Therning (JIRA)" <server-...@james.apache.org>
Subject [jira] Resolved: (MIME4J-17) Initialization of custom TempStorage doesn't work
Date Tue, 05 Jun 2007 12:47:26 GMT

     [ https://issues.apache.org/jira/browse/MIME4J-17?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Niklas Therning resolved MIME4J-17.
-----------------------------------

    Resolution: Fixed

> Initialization of custom TempStorage doesn't work
> -------------------------------------------------
>
>                 Key: MIME4J-17
>                 URL: https://issues.apache.org/jira/browse/MIME4J-17
>             Project: Mime4j
>          Issue Type: Bug
>    Affects Versions: 0.3
>            Reporter: Niklas Therning
>            Assignee: Niklas Therning
>             Fix For: 0.4
>
>
> Rickard Ekeroth reported the following bug to the ML:
> I think that the code in the static initializer of the class 'TempStorage' is not correct
when trying to find a custom class to load:
> static {
>               String clazz = System.getProperty("org.apache.james.mime4j.tempStorage");
>        try {
>                       if (inst != null) {
>                inst = (TempStorage) Class.forName(clazz).newInstance();
>            }
>                   } catch (Throwable t) {
>            log.warn("Unable to create or instantiate TempStorage class '"           
          + clazz + "' using SimpleTempStorage instead", t);
>        }
>        if (inst == null) {
>            inst = new SimpleTempStorage();                   }
>    }
> Surely the code should check for the 'clazz' to be not null and not 'inst' to determine
if it should try to load the custom temp storage class. 

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org


Mime
View raw message