[Nice-commit] Nice/src/bossa/syntax RetypedJavaMethod.java,1.3,1.4
Brought to you by:
bonniot
From: <bo...@us...> - 2003-06-23 16:15:25
|
Update of /cvsroot/nice/Nice/src/bossa/syntax In directory sc8-pr-cvs1:/tmp/cvs-serv15314/src/bossa/syntax Modified Files: RetypedJavaMethod.java Log Message: Slightly improve the error messages. Index: RetypedJavaMethod.java =================================================================== RCS file: /cvsroot/nice/Nice/src/bossa/syntax/RetypedJavaMethod.java,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** RetypedJavaMethod.java 15 Nov 2002 13:48:05 -0000 1.3 --- RetypedJavaMethod.java 23 Jun 2003 16:15:21 -0000 1.4 *************** *** 109,113 **** if(!(holder instanceof ClassType)) ! User.error(this, className + " is a primitive type"); className = new LocatedString(holder.getName(), className.location()); --- 109,113 ---- if(!(holder instanceof ClassType)) ! User.error(className, className + " is a primitive type"); className = new LocatedString(holder.getName(), className.location()); *************** *** 137,141 **** if(reflectMethod == null) ! User.error(this, "Method " + methodName + " was not found in class " + holder.getName()); --- 137,144 ---- if(reflectMethod == null) ! User.error(className, ! (methodName.equals("<init>") ! ? "Constructor" ! : "Method " + methodName) + " was not found in class " + holder.getName()); |