ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Les Hughes <leslie.hug...@rubus.com>
Subject RE: JDK 1.4 pattern matching (and small "pedantic" PATCH)
Date Tue, 19 Feb 2002 21:17:54 GMT

Try 

java version "1.4.0-rc"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.0-rc-b91)
Java HotSpot(TM) Client VM (build 1.4.0-rc-b91, mixed mode)

It's in the docs now....(but I haven't checked the code...:  :-)

UNIX_LINES
public static final int UNIX_LINES
Enables Unix lines mode. 
In this mode, only the '\n' line terminator is recognized in the behavior of
., ^, and $. 

Unix lines mode can also be enabled via the embedded flag expression (?d). 

See Also:
Constant Field Values


Bye,
Les


> -----Original Message-----
> From: Mariusz Nowostawski [mailto:mariusz@marni.otago.ac.nz]
> Sent: 19 February 2002 21:09
> To: ant-dev@jakarta.apache.org
> Subject: JDK 1.4 pattern matching (and small "pedantic" PATCH)
> 
> 
> 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/too
ls/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/ClassP
> athLoader.java
> org/apache/tools/ant/taskdefs/optional/sitraka/bytecode/attrib
> utes/AttributeInfo.java
> org/apache/tools/ant/taskdefs/optional/sos/SOSCmd.java
> 

--
To unsubscribe, e-mail:   <mailto:ant-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-dev-help@jakarta.apache.org>


Mime
View raw message