You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ant.apache.org by bo...@locus.apache.org on 2000/09/15 08:55:27 UTC
cvs commit: jakarta-ant/src/main/org/apache/tools/ant IntrospectionHelper.java
bodewig 00/09/14 23:55:27
Modified: src/main/org/apache/tools/ant IntrospectionHelper.java
Log:
Fixed message text when a class can not be found.
Submitted by: Nico Seessle <ni...@seessle.de>
Revision Changes Path
1.10 +5 -5 jakarta-ant/src/main/org/apache/tools/ant/IntrospectionHelper.java
Index: IntrospectionHelper.java
===================================================================
RCS file: /home/cvs/jakarta-ant/src/main/org/apache/tools/ant/IntrospectionHelper.java,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -r1.9 -r1.10
--- IntrospectionHelper.java 2000/09/06 15:00:11 1.9
+++ IntrospectionHelper.java 2000/09/15 06:55:26 1.10
@@ -219,7 +219,7 @@
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 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 @@
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 @@
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 @@
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);
}