You are viewing a plain text version of this content. The canonical link for it is here.
Posted to slide-dev@jakarta.apache.org by "Pill, Juergen" <Ju...@softwareag.com> on 2001/08/01 09:34:14 UTC
RE: cvs commit: jakarta-slide/src/webdav/client/src/org/apache/we
bdav/lib/methods PropFindMethod.java
Hello,
isUnicodeIdentifierPart() defines the legal part character of a Java
Identifier.
Juergen
-----Original Message-----
From: msmith@apache.org [mailto:msmith@apache.org]
Sent: Wednesday, August 01, 2001 03.15 AM
To: jakarta-slide-cvs@apache.org
Subject: cvs commit:
jakarta-slide/src/webdav/client/src/org/apache/webdav/lib/methods
PropFindMethod.java
msmith 01/07/31 18:15:07
Modified: src/webdav/client/src/org/apache/webdav/lib/methods
PropFindMethod.java
Log:
'-' is a valid part of an XML name, according to the spec. Apparently,
Character.isUnicodeIdentifierPart() doesn't think it can be part of a
unicode identifier. So explicitly allow it as well.
I don't think this is the 'right' solution (is there a reference somewhere
describing _in detail_ what isUnicodeIdentifierPart() actually does?
This allows the client to do a propfind on something with a - in the
property name (e.g. current-user-privelege-set).
Revision Changes Path
1.27 +4 -4
jakarta-slide/src/webdav/client/src/org/apache/webdav/lib/methods/PropFindMe
thod.java
Index: PropFindMethod.java
===================================================================
RCS file:
/home/cvs/jakarta-slide/src/webdav/client/src/org/apache/webdav/lib/methods/
PropFindMethod.java,v
retrieving revision 1.26
retrieving revision 1.27
diff -u -r1.26 -r1.27
--- PropFindMethod.java 2001/07/22 04:41:55 1.26
+++ PropFindMethod.java 2001/08/01 01:15:07 1.27
@@ -1,7 +1,7 @@
/*
- * $Header:
/home/cvs/jakarta-slide/src/webdav/client/src/org/apache/webdav/lib/methods/
PropFindMethod.java,v 1.26 2001/07/22 04:41:55 remm Exp $
- * $Revision: 1.26 $
- * $Date: 2001/07/22 04:41:55 $
+ * $Header:
/home/cvs/jakarta-slide/src/webdav/client/src/org/apache/webdav/lib/methods/
PropFindMethod.java,v 1.27 2001/08/01 01:15:07 msmith Exp $
+ * $Revision: 1.27 $
+ * $Date: 2001/08/01 01:15:07 $
*
* ====================================================================
*
@@ -376,7 +376,7 @@
int i = 1;
while (!found && (i <= length)) {
char chr = propertyName.charAt(length - i);
- if (!Character.isUnicodeIdentifierPart(chr)) {
+ if (!Character.isUnicodeIdentifierPart(chr) && chr !=
'-') {
found = true;
} else {
i++;
Re: cvs commit:
jakarta-slide/src/webdav/client/src/org/apache/webdav/lib/methods
PropFindMethod.java
Posted by Michael Smith <ms...@speedlegal.com>.
"Pill, Juergen" wrote:
>
> Hello,
>
> isUnicodeIdentifierPart() defines the legal part character of a Java
> Identifier.
>
> Juergen
Strange. I thought that was what isJavaIdentifierPart() was for...
The javadoc says that they differ, too.
Michael