ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mariusz Nowostawski <mari...@marni.otago.ac.nz>
Subject JDK 1.4 pattern matching (and small "pedantic" PATCH)
Date Tue, 19 Feb 2002 21:09:04 GMT
My JDK, which is:

$ java -fullversion
java full version "1.4.0-beta-b65"

does not have java.util.regex.Pattern.UNIX_LINES constant. And in my 1.4 
Javadocs this attribute is not listed either. So - what is the story 
behind this attribute?

Found 1 semantic error compiling 
"/home/projects/Apache/CVS/jakarta-ant/src/main/org/apache/tools/ant/util/regexp/Jdk14RegexpMatcher.java":
    165.         int cOptions = Pattern.UNIX_LINES;
                                <---------------->
*** Error: No field named "UNIX_LINES" was found in type 
"java/util/regex/Pattern".


TIA
Mariusz


PS.

The attached patch makes the following source code "pedantic":

org/apache/tools/ant/taskdefs/optional/sitraka/bytecode/ClassPathLoader.java
org/apache/tools/ant/taskdefs/optional/sitraka/bytecode/attributes/AttributeInfo.java
org/apache/tools/ant/taskdefs/optional/sos/SOSCmd.java

Mime
View raw message