[tcljava-dev] Jacl and MacOSX with Java 1.4.1_01-39
Brought to you by:
mdejong
|
From: Bruce J. <nm...@ma...> - 2003-03-22 21:33:02
|
Since upgrading to the latest Java on MacOSX I've found that doing a
"source -url resource:/file" which results in reading from a compressed
jar file no longer works. Enabling (by just making the if statement
always true) the fix below (from Interp.java) solves the problem.
Anyone else using MacOSX with Java and having this problem?
Bruce
// FIXME : ugly JDK 1.2 only hack
// Ugly workaround for compressed files BUG in JDK1.2
// this bug first showed up in JDK1.2beta4. I have sent
// a number of emails to Sun but they have deemed this a
"feature"
// of 1.2. This is flat out wrong but I do not seem to change
thier
// minds. Because of this, there is no way to do non blocking IO
// on a compressed Stream in Java. (mo)
if (System.getProperty("java.version").startsWith("1.2") &&
stream.getClass().getName().equals("java.util.zip.ZipFile$1")) {
|