[Biojava-dev] [Bug 2582] SimpleRichLocation.contains() method

bugzilla-daemon at portal.open-bio.org bugzilla-daemon at portal.open-bio.org
Wed Sep 10 11:03:44 UTC 2008


http://bugzilla.open-bio.org/show_bug.cgi?id=2582


avellozo at gmail.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |REOPENED
         Resolution|FIXED                       |




------- Comment #2 from avellozo at gmail.com  2008-09-10 07:03 EST -------
The next program should return true, but it returns false.
public class Test
{
        public static void main(String[] args) {
                RichLocation loc1a = new SimpleRichLocation(new
SimplePosition(2), new SimplePosition(4), 0);
                RichLocation loc1b = new SimpleRichLocation(new
SimplePosition(6), new SimplePosition(8), 0);
                RichLocation loc2a = new SimpleRichLocation(new
SimplePosition(2), new SimplePosition(4), 0);
                RichLocation loc2b = new SimpleRichLocation(new
SimplePosition(6), new SimplePosition(8), 0);
                ArrayList a = new ArrayList();
                a.add(loc2a);
                a.add(loc2b);
                CompoundRichLocation loc2 = new CompoundRichLocation(a);
                a.clear();
                a.add(loc1a);
                a.add(loc1b);
                CompoundRichLocation loc1 = new CompoundRichLocation(a);
                System.out.println(loc1.contains(loc2));
        }
}


-- 
Configure bugmail: http://bugzilla.open-bio.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.



More information about the biojava-dev mailing list