Changeset 65
- Timestamp:
- 09/11/07 16:31:35 (1 year ago)
- Files:
-
- trunk/pom.xml (modified) (1 diff)
- trunk/src/main/java/net/schst/XJConf/ObjectValueConverter.java (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/pom.xml
r63 r65 6 6 <groupId>net.schst</groupId> 7 7 <artifactId>XJConf</artifactId> 8 <version>0.10. 3</version>8 <version>0.10.4</version> 9 9 <packaging>jar</packaging> 10 10 trunk/src/main/java/net/schst/XJConf/ObjectValueConverter.java
r64 r65 2 2 3 3 import java.lang.reflect.Constructor; 4 import java.lang.reflect.Modifier; 4 5 5 6 import net.schst.XJConf.exceptions.ValueConversionException; … … 44 45 throw new ValueConversionException("Class " + this.className + " does not exist", e); 45 46 } 47 48 if (instanceClass.isInterface()) { 49 throw new ValueConversionException("Class " + this.className + " is an interface."); 50 } 51 else if (Modifier.toString(instanceClass.getModifiers()).contains("abstract")) { 52 throw new ValueConversionException("Class " + this.className + " is abstract."); 53 } 54 else if (instanceClass.isAnnotation()) { 55 throw new ValueConversionException("Class " + this.className + " is an annotation."); 56 } 57 else if (instanceClass.isEnum()) { 58 throw new ValueConversionException("Class " + this.className + " is an enum."); 59 } 60 46 61 // try to create a new instance 47 62 try {
