Chris, First of all thanks for using Inline::Java.
I think I know what your problem is. When Inline::Java tries to determine if one class inherits from another, it searches through the list of super classes all the way up to the Object class. In your case what is special is that Collection is not a class per se, it's an interface. So technically ArrayList is not a Collection, it implements the Collection interface. But in a case like yours (and in most cases I suppose), you don't need that distinction. I think it's a minor fix. I'll take a closer look at it and I'll get back to you. Cheers, Patrick ---------------------------------- | Patrick LeBoutillier | [EMAIL PROTECTED] >From: Chris Mungall <[EMAIL PROTECTED]> >To: Patrick LeBoutillier <[EMAIL PROTECTED]> >Subject: Inline::Java bug (problem in JVM???) >Date: Wed, 5 Dec 2001 16:54:01 -0800 (PST) > >Patrick, > >Many thanks for Inline::Java. It looks like it will be exceedingly useful >to us in the biologicaly world and our hybrid perl/java hacked systems; >the human genome people in particular (www.ensembl.org) in particular >stand to gain a whole lot. > >Unfortunately there seems to be a bug, and double-unfortunately it seems >to be at the level of the JVM protocol and as such my be out of band as >far as Inline::Java is concerned. The other Java.pm module from zzo.com >seems to suffer from this too. > >I'm including the script which causes this, as well as the generated bug >report. I can summarise the problem here - > >the JVM gets sent this message > >isa java.util.ArrayList java.util.Collection 1 > >and returns -1 > >....when clearly according to the jdk1.3 API > >ArrayList extends AbstractList extends AbstractCollection implements >Collection > > >here's some extra info > > > uname -a >Linux linux 2.4.10-4GB #1 Fri Sep 28 17:20:21 GMT 2001 i686 unknown > > > java -version >java version "1.3.0" >Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.0) >Classic VM (build 1.3.0, J2RE 1.3.0 IBM build cx130-20010626 (JIT enabled: >jitc)) > >I also get the same problem on linux for > > > java -version >java version "1.3.1" >Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.1-b24) >Java HotSpot(TM) Client VM (build 1.3.1-b24, mixed mode) > > >.....Solaris is no more helpful: > > >uname -a >SunOS seeker.lbl.gov 5.8 Generic_108528-03 sun4u sparc SUNW,Ultra-4 > > >java -version >java version "1.2.2" >Solaris VM (build Solaris_JDK_1.2.2_05a, native threads, sunwjit) > > >Maybe other JVMs (eg Kaffe) would work? > >I haven't tried it with JNI but if I understand how it works correctly it >will run into the same problem. > >I don't expect this is something that can be resolved easily, but I was >wondering if you had a gut feeling for how "fixable" this problem might be >in the long term (I realise the software has big ALPHA warnings all over >it, I'm just impatient :) ). > >I think I may be able to work round it by writing a facade layer in java >that sits between the main code and the perl. Just wondering if this was >the best way to do things for now. > >------------------------------------------------------------------ >Chris Mungall Berkeley Drosophila Genome Project >[EMAIL PROTECTED] http://www.fruitfly.org/developers ><< Inline.REPORTBUG.tar.gz >> ><< t4.pl >> _________________________________________________________________ Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp
