Index: JAXBPropertySG.java =================================================================== RCS file: /home/cvspublic/ws-jaxme/src/jaxme/org/apache/ws/jaxme/generator/sg/impl/JAXBPropertySG.java,v retrieving revision 1.8 diff -u -r1.8 JAXBPropertySG.java --- JAXBPropertySG.java 27 Aug 2004 01:02:42 -0000 1.8 +++ JAXBPropertySG.java 2 Sep 2004 11:09:07 -0000 @@ -113,7 +113,11 @@ } else { prefix = "get"; } - return prefix + Character.toUpperCase(propertyName.charAt(0)) + propertyName.substring(1); + String methodName = prefix + Character.toUpperCase(propertyName.charAt(0)) + propertyName.substring(1); + if (methodName.equals("getClass")) { + throw new SAXException("Method names are forbidden to conflict with methods declared in java.lang.Object. "); + } + return methodName; } public String getXMLSetMethodName(PropertySG pController) throws SAXException {