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:[EMAIL PROTECTED] > Sent: 19 February 2002 21:09 > To: [EMAIL PROTECTED] > 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:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
