Adding a root cause to the exception was added to the RuntimeException signature in
1.4. I just compiled the latest CVS against JDK 1.2 and these are the only compile
errors.
Here is a trivial patch to get back to 1.2 compliance...I'm using Eclipse to create
this, I think it complies with the guidelines at
http://jakarta.apache.org/site/source.html#Patches
Eric
--
Eric D. Isakson SAS Institute Inc.
Application Developer SAS Campus Drive
XML Technologies Cary, NC 27513
(919) 531-3639 http://www.sas.com
-----Original Message-----
From: Ype Kingma [mailto:[EMAIL PROTECTED]
Sent: Tuesday, March 18, 2003 12:48 AM
To: [EMAIL PROTECTED]
Subject: FSDirectory won't compile
Dear Lucene developers,
In the current CVS version, FSDirectory.java won't compile.
A fix is could be to replace the , on both lines by a +, evt. appending a space
and/or a colon to both argument strings.
I'm using java 1.3.1 on linux.
Kind regards,
Ype Kingma
compile:
[javac] Compiling 72 source files to
/home/ype/lcncvs/jakarta-lucene/bin/classes
[javac]
/home/ype/lcncvs/jakarta-lucene/src/java/org/apache/lucene/store/FSDirectory.java:246:
cannot resolve symbol
[javac] symbol : constructor RuntimeException
(java.lang.String,java.io.IOException)
[javac] location: class java.lang.RuntimeException
[javac] throw new RuntimeException("could not close input
stream", e);
[javac] ^
[javac]
/home/ype/lcncvs/jakarta-lucene/src/java/org/apache/lucene/store/FSDirectory.java:253:
cannot resolve symbol
[javac] symbol : constructor RuntimeException
(java.lang.String,java.io.IOException)
[javac] location: class java.lang.RuntimeException
[javac] throw new RuntimeException("could not close output
stream", e);
[javac] ^
[javac] 2 errors
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Index: FSDirectory.java
===================================================================
RCS file:
/home/cvspublic/jakarta-lucene/src/java/org/apache/lucene/store/FSDirectory.java,v
retrieving revision 1.16
diff -u -r1.16 FSDirectory.java
--- FSDirectory.java 3 Mar 2003 20:58:25 -0000 1.16
+++ FSDirectory.java 17 Mar 2003 22:21:29 -0000
@@ -243,14 +243,14 @@
try {
in.close();
} catch (IOException e) {
- throw new RuntimeException("could not close input stream", e);
+ throw new RuntimeException("could not close input stream " + e);
}
}
if (out != null) {
try {
out.close();
} catch (IOException e) {
- throw new RuntimeException("could not close output stream", e);
+ throw new RuntimeException("could not close output stream " + e);
}
}
}
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]