[gcj-eclipse-merge-branch] MinGW ecj: Cross-built ecjx?! (was Re: ecj branch)

Andi Vajda andi@osafoundation.org
Wed Dec 6 01:08:00 GMT 2006


On Tue, 5 Dec 2006, Tom Tromey wrote:
>>>>>> "Andi" == Andi Vajda <andi@osafoundation.org> writes:
>> Andi> I've had problems with bytecode and platform independence recently,
> Andi> albeit not with ecj1. The issue I've noticed is that when compiling
> Andi> Java Lucene from .java to .class to .jar with a non gcj javac such as
> Andi> Apple's, Sun's or Blackdown's, using these bits to then compile from
> Andi> .jar to .o with gcj, the resulting executables will or will not
> Andi> perform correctly depending on where the .java compilation took place.
>> This is very, very weird. It is weird enough that I'm having trouble
> thinking of a way this could happen.
>> What does the failure look like?

To be more precise, I just reproduced the problem. 'make test' output is 
included below. The test suite is a lot longer than this, the short output 
means it eventually crashes.
Andi..
yuzu:vajda> make test
find test -name 'test_*.py' | xargs -n 1 
/Library/Frameworks/Python.framework/Versions/2.4/bin/python
...
----------------------------------------------------------------------
Ran 3 tests in 0.001s
OK
.....
----------------------------------------------------------------------
Ran 5 tests in 0.007s
OK
.
----------------------------------------------------------------------
Ran 1 test in 0.003s
OK
.
----------------------------------------------------------------------
Ran 1 test in 0.000s
OK
F
======================================================================
FAIL: test_bug1564 (__main__.Test_Bug1564)
----------------------------------------------------------------------
Traceback (most recent call last):
 File "test/test_bug1564.py", line 53, in test_bug1564
 self.assertEqual(hits.length(), 1)
AssertionError: 0 != 1
----------------------------------------------------------------------
Ran 1 test in 0.002s
FAILED (failures=1)
E
======================================================================
ERROR: test_bug1763 (__main__.Test_Bug1763)
----------------------------------------------------------------------
Traceback (most recent call last):
 File "test/test_bug1763.py", line 65, in test_bug1763
 self.assertEqual(hits.doc(0).get('id'), '2')
JavaError: java.lang.IndexOutOfBoundsException: Not a valid hit number: 0
----------------------------------------------------------------------
Ran 1 test in 0.003s
FAILED (errors=1)
.
----------------------------------------------------------------------
Ran 1 test in 0.003s
OK
.
----------------------------------------------------------------------
Ran 1 test in 0.001s
OK
E
======================================================================
ERROR: testDocBoost (__main__.DocBoostTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
 File "test/test_DocBoost.py", line 68, in testDocBoost
 hitCollector())
JavaError: java.lang.NullPointerException
----------------------------------------------------------------------
Ran 1 test in 0.003s
FAILED (errors=1)
make: *** [test] Error 1


More information about the Java mailing list

AltStyle によって変換されたページ (->オリジナル) /