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 Kohsuke KAWAGUCHI <ko...@eng.sun.com> on 2001/05/11 06:28:11 UTC

Compiling src/org/apache/xerces/impl/validation/datatypes/regex/RegularExpression.java with Microsoft's jvc.

JVC (java compiler from Microsoft) can't compile 

org.apache.xerces.impl.validation.datatypes.regex.RegularExpression
and 
org.apache.xerces.impl.validation.datatypes.regex.Token


It might be a kind of bug of JVC, but I'd appreciate if someone would
modify the source code to make JVC happy.


In RegularExpression.java, line.140
> *          <kbd>\u005cu</kbd><var>c</var>, <kbd>\L</kbd>, <kbd>\U</kbd>,

JVC says "Invalid escape character (J0031)" on "\u005cu". If I modify it
to "\u005c u", then it works.

Line 185, line 209, and line 502 has the same problem.



In Token.java, line 1008,
>             if (this.type == BACKREFERENCE)

JVC says "ambiguous name: inherited
'org..<snip/>..regexp.Token.BACKREFERENCE' and outer scope
'org..<snip/>..regexp.Token.BACKREFERENCE' -- an explicit 'this'
qualifier is required".

If I modify this line to
>             if (this.type == this.BACKREFERENCE)

JVC stops complaining.

There are just too many of this error in this file. So I attached
modified version that I'm using.


--
Kohsuke KAWAGUCHI                          +1 650 786 0721
Sun Microsystems                   kohsuke.kawaguchi@eng.sun.com