Browse Source

Fixed message text when a class can not be found.

Submitted by:	Nico Seessle <nico@seessle.de>


git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@267995 13f79535-47bb-0310-9956-ffa450edef68
master
Stefan Bodewig 25 years ago
parent
commit
41509d6410
1 changed files with 5 additions and 5 deletions
  1. +5
    -5
      src/main/org/apache/tools/ant/IntrospectionHelper.java

+ 5
- 5
src/main/org/apache/tools/ant/IntrospectionHelper.java View File

@@ -219,7 +219,7 @@ public class IntrospectionHelper {
throws BuildException {
AttributeSetter as = (AttributeSetter) attributeSetters.get(attributeName);
if (as == null) {
String msg = "Class " + element.getClass() +
String msg = "Class " + element.getClass().getName() +
" doesn't support the \"" + attributeName + "\" attribute";
throw new BuildException(msg);
}
@@ -242,7 +242,7 @@ public class IntrospectionHelper {
*/
public void addText(Object element, String text) {
if (addText == null) {
String msg = "Class " + element.getClass() +
String msg = "Class " + element.getClass().getName() +
" doesn't support nested text elements";
throw new BuildException(msg);
}
@@ -267,7 +267,7 @@ public class IntrospectionHelper {
throws BuildException {
NestedCreator nc = (NestedCreator) nestedCreators.get(elementName);
if (nc == null) {
String msg = "Class " + element.getClass() +
String msg = "Class " + element.getClass().getName() +
" doesn't support the nested \"" + elementName + "\" element";
throw new BuildException(msg);
}
@@ -295,7 +295,7 @@ public class IntrospectionHelper {
throws BuildException {
Class nt = (Class) nestedTypes.get(elementName);
if (nt == null) {
String msg = "Class " + bean +
String msg = "Class " + bean.getName() +
" doesn't support the nested \"" + elementName + "\" element";
throw new BuildException(msg);
}
@@ -309,7 +309,7 @@ public class IntrospectionHelper {
throws BuildException {
Class at = (Class) attributeTypes.get(attributeName);
if (at == null) {
String msg = "Class " + bean +
String msg = "Class " + bean.getName() +
" doesn't support the \"" + attributeName + "\" attribute";
throw new BuildException(msg);
}


Loading…
Cancel
Save