Browse Source

more diagnostics

git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@276984 13f79535-47bb-0310-9956-ffa450edef68
master
Steve Loughran 20 years ago
parent
commit
e47f624d54
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      src/main/org/apache/tools/ant/types/DataType.java

+ 2
- 0
src/main/org/apache/tools/ant/types/DataType.java View File

@@ -152,6 +152,8 @@ public abstract class DataType extends ProjectComponent {

Object o = ref.getReferencedObject(getProject());
if (!(requiredClass.isAssignableFrom(o.getClass()))) {
log("Class "+o.getClass()+" is not a subclass of "+requiredClass,
Project.MSG_VERBOSE);
String msg = ref.getRefId() + " doesn\'t denote a " + dataTypeName;
throw new BuildException(msg);
} else {


Loading…
Cancel
Save