You are viewing a plain text version of this content. The canonical link for it is here.
Posted to j-dev@xerces.apache.org by Michael Davey <Mi...@coderage.org> on 2003/07/12 01:01:27 UTC

'illegal unicode escape' error in RegularExpression.java with Sun JRE 1.4.2

Hello,

Sun's JRE version 1.4.2 fails to compile Xerces2-J, reporting an 
'illegal unicode escape' error in 
java/build/src/org/apache/xerces/impl/xpath/regex/RegularExpression.java

Sun currently thinks that this is caused by a regression in the JRE, 
between versions 1.4.1_02 and 1.4.2-beta.  This is Sun BugID #4863451, 
if you are a registered Java developer, you can read the latest status 
on  Java BugParade 
<http://developer.java.sun.com/developer/bugParade/bugs/4863451.html>.

Workarounds:
  *  Use a Sun JRE with version number below 1.4.1_02
  *  Use another vendor's JRE
  *  Manually edit the source, replacing "\u005cu" with "\u005c u"


I have five questions:

  *  Do at least some of the regular Xerces2-J developers know about this?
  *  If so, Is the information above correct, to the best of your knowledge?
  *  Is there anything else I should know about this?
  *  Shall I open and immediately close a bug against Xerces-J on this 
issue (as "not-a-bug", with reference to Sun's bug number)
  *  Shall I submit a patch for the website FAQ section and if so, for 
the "common problems" or the "build and compile" section?

-- 
Michael


FYI, here is the last few lines of the build:
---->%----
compile:
     [copy] Copying 9 files to 
/home/michaed/tmp3/xml-xerces/java/build/classes
   [xjavac] Compiling 612 source files to 
/home/michaed/tmp3/xml-xerces/java/build/classes
   [xjavac] 
/home/michaed/tmp3/xml-xerces/java/build/src/org/apache/xerces/impl/xpath/regex/RegularExpression.java:138: 
illegal unicode escape
   [xjavac]  *          <kbd>\u005cu</kbd><var>c</var>, <kbd>\L</kbd>, 
<kbd>\U</kbd>,
   [xjavac]                       ^
   [xjavac] 
/home/michaed/tmp3/xml-xerces/java/build/src/org/apache/xerces/impl/xpath/regex/RegularExpression.java:183: 
illegal unicode escape
   [xjavac]  *       <dt class="REGEX"><kbd>\u005cu</kbd><var>HHHH</var>
   [xjavac]                                      ^
   [xjavac] 
/home/michaed/tmp3/xml-xerces/java/build/src/org/apache/xerces/impl/xpath/regex/RegularExpression.java:207: 
illegal unicode escape
   [xjavac]  *         <li class="REGEX">A character (including <Kbd>\e 
\f \n \r \t</kbd> <kbd>\u005cx</kbd><var>HH</var> 
<kbd>\u005cx{</kbd><var>HHHH</var><kbd>}</kbd> 
<!--kbd>\u005cu</kbd><var>HHHH</var--> <kbd>\u005cv</kbd><var>HHHHHH</var>)
   
[xjavac]                                                                                                                                                                           
^
   [xjavac] 
/home/michaed/tmp3/xml-xerces/java/build/src/org/apache/xerces/impl/xpath/regex/RegularExpression.java:500: 
illegal unicode escape
   [xjavac]  * <!--               | '\u005cu' hex-char hex-char hex-char 
hex-char
   [xjavac]                               ^
   [xjavac] 4 errors

BUILD FAILED
---->%----



---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-j-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-j-dev-help@xml.apache.org