Ok, it's not a java 1.6 thing it's something else. I also found a
box that runs that test ok.
From what I can tell, this is the test that's failing:
http://www.krugle.org/kse/entfiles/lucene/apache.org/java/trunk/src/test/org/apache/lucene/index/TestIndexInput.java#89
This is verifying that the "Modified UTF-8 null bytes" sequence is
handled properly, from line 63 in the same file.
I think this is the old, deprecated format for pre-2.4 indexes.
So shouldn't there be a call to setModifiedUTF8StringsMode()? And
since this is a one-way setting of the preUTF8Strings flag, It feels
like this should be in a separate test.
Without this call, you'll get the result of calling the String
class's default constructor with an ill-formed UTF-8 sequence (for
Unicode 3.1 or later), since 0xC0 0x80 isn't the shortest form for
the u0000 code point.
-- Ken
Mark Miller wrote:
Hey Sami, I've been running tests quite a bit recently with Ubuntu
8.10 and OpenJDK 6 on a 64-bit machine, and I have not seen it
once.
Just tried again with Sun JDK 6 and 5 32-bit as well, and I am
still not seeing it.
Odd.
- Mark
Sami Siren wrote:
I am constantly seeing following error when running "ant test":
[junit] Testcase:
testRead(org.apache.lucene.index.TestIndexInput): FAILED
[junit] expected:<[]> but was:<[??]>
[junit] junit.framework.ComparisonFailure: expected:<[]> but was:<[??]>
[junit] at
org.apache.lucene.index.TestIndexInput.testRead(TestIndexInput.java:89)
on both intel and amd architectures running linux.
java on AMD:
java version "1.6.0_11"
Java(TM) SE Runtime Environment (build 1.6.0_11-b03)
Java HotSpot(TM) 64-Bit Server VM (build 11.0-b16, mixed mode)
java on Intel:
java version "1.6.0_0"
IcedTea6 1.4 (fedora-7.b12.fc10-x86_64) Runtime Environment (build
1.6.0_0-b12)
OpenJDK 64-Bit Server VM (build 10.0-b19, mixed mode)
java version "1.6.0_11"
Java(TM) SE Runtime Environment (build 1.6.0_11-b03)
Java HotSpot(TM) 64-Bit Server VM (build 11.0-b16, mixed mode)
java version "1.6.0_11"
Java(TM) SE Runtime Environment (build 1.6.0_11-b03)
Java HotSpot(TM) Server VM (build 11.0-b16, mixed mode)
Anyone else seeing this?
--
Sami Siren
---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscr...@lucene.apache.org
For additional commands, e-mail: java-dev-h...@lucene.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscr...@lucene.apache.org
For additional commands, e-mail: java-dev-h...@lucene.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscr...@lucene.apache.org
For additional commands, e-mail: java-dev-h...@lucene.apache.org
--
Ken Krugler
Krugle, Inc.
+1 530-210-6378
"If you can't find it, you can't fix it"
---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscr...@lucene.apache.org
For additional commands, e-mail: java-dev-h...@lucene.apache.org