Changeset 23

Show
Ignore:
Timestamp:
07/25/05 18:36:23 (3 years ago)
Author:
niels
Message:

if attribute not set and no default value exists, than return null on convertvalue

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/src/net/schst/XJConf/AttributeDefinition.java

    r21 r23  
    132132            value = this.getDefault(); 
    133133        } 
     134        if (value == null) { 
     135            return null; 
     136        } 
    134137        Object instance = null; 
    135138        try { 
    136139            Class cl = Class.forName(this.type, true,loader); 
    137             Class paramTypes[] = {value.getClass()}; 
     140            Class paramTypes[] = {String.class}; 
    138141             
    139142            Constructor co = cl.getConstructor(paramTypes);