db-derby-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dyre Tjeldvoll (JIRA)" <j...@apache.org>
Subject [jira] Created: (DERBY-2844) PropertyUtil should not silently ignore syntax errors in a property file
Date Tue, 19 Jun 2007 10:26:25 GMT
PropertyUtil should not silently ignore syntax errors in a property file
------------------------------------------------------------------------

                 Key: DERBY-2844
                 URL: https://issues.apache.org/jira/browse/DERBY-2844
             Project: Derby
          Issue Type: Improvement
          Components: Services
    Affects Versions: 10.2.2.0
            Reporter: Dyre Tjeldvoll


public static int handleInt(String value, int min, int max, int defaultValue) 
will silently catch a NumberFormatException if there is a syntax error in the property value
string.

It should either throw an exception 
(as public static int intPropertyValue(String p, Serializable v, int minValue, int maxValue,
int defaultValue) throws StandardException) does, or at least 
print a warning about the property being ignored and the default value being substituted.

Currently, if you put the following in your derby.properties (which is not that unreasonable):
derby.storage.pageCacheSize=25000  # Need a bigger page cache

you get the default value of 1000, with absolutely no warning.


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


Mime
View raw message