>You can't change these rules.
>See the JAX-RPC Appendix on XML-Java name mapping.
I can if the current code doesn't uphold those rules :-) ... I did look at
the appendix and discovered that our current behavior of capitalizing the
letter immediately following underscore characters is invalid. The proper
mapping for an XML name like "e_nillable" is "e_nillable", not
"e_Nillable", which is what it was being changed to.
- James Snell
IBM Emerging Technologies
[EMAIL PROTECTED]
(559) 587-1233 (office)
(700) 544-9035 (t/l)
Programming Web Services With SOAP
O'Reilly & Associates, ISBN 0596000952
Have I not commanded you? Be strong and courageous.
Do not be terrified, do not be discouraged, for the Lord your
God will be with you whereever you go. - Joshua 1:9
Tom Jordahl <[EMAIL PROTECTED]>
02/28/2003 06:20 AM
Please respond to axis-dev
To
"'[EMAIL PROTECTED]'" <[EMAIL PROTECTED]>
cc
bcc
Subject
RE: cvs commit: xml-axis/java/src/org/apache/axis/utils JavaUtils .java
Ack!
You can't change these rules.
See the JAX-RPC Appendix on XML-Java name mapping.
--
Tom Jordahl
Macromedia Server Development
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Thursday, February 27, 2003 8:02 PM
To: [EMAIL PROTECTED]
Subject: cvs commit: xml-axis/java/src/org/apache/axis/utils
JavaUtils.java
jmsnell 2003/02/27 17:01:56
Modified: java/src/org/apache/axis/utils JavaUtils.java
Log:
Final Fix http://nagoya.apache.org/bugzilla/show_bug.cgi?id=14137
Made a change to the JavaUtils XML-to-Java name mapping so that
underscore characters are not treated as punctuation or word breaks.
Revision Changes Path
1.91 +2 -1 xml-axis/java/src/org/apache/axis/utils/JavaUtils.java
Index: JavaUtils.java
===================================================================
RCS file:
/home/cvs/xml-axis/java/src/org/apache/axis/utils/JavaUtils.java,v
retrieving revision 1.90
retrieving revision 1.91
diff -u -r1.90 -r1.91
--- JavaUtils.java 25 Jan 2003 19:13:33 -0000 1.90
+++ JavaUtils.java 28 Feb 2003 01:01:56 -0000 1.91
@@ -813,7 +813,8 @@
// If c is not a character, but is a legal Java
// identifier character, capitalize the next character.
// For example: "22hi" becomes "22Hi"
- wordStart = !Character.isLetter(c);
+ wordStart = !(Character.isLetter(c) ||
Character.isJavaIdentifierPart(c));
+ //wordStart = !Character.isJavaIdentifierPart(c)
}
// covert back to a String