[Biojava-dev] [Bug 2150] New: RichStreamReader.nextBioEntry() call this.nextBioEntry()

bugzilla-daemon at portal.open-bio.org bugzilla-daemon at portal.open-bio.org
Sun Nov 26 07:19:35 UTC 2006


show_bug.cgi?id=2150

           Summary: RichStreamReader.nextBioEntry()  call
                    this.nextBioEntry()
           Product: BioJava
           Version: live (CVS source)
          Platform: PC
        OS/Version: Windows XP
            Status: NEW
          Severity: normal
          Priority: P2
         Component: seq.io
        AssignedTo: biojava-dev at biojava.org
        ReportedBy: jdiminic at gmail.com


My code in biojava 1.5 beta:
        String fasta = ... // same fasta string
        Namespace ns = RichObjectFactory.getDefaultNamespace();
        StringReader r = new StringReader(fasta);
        BufferedReader re = new BufferedReader(r);

        RichSequenceIterator readFasta = IOTools.readFastaDNA(re, ns);


I got Exception:

exception in thread "main" java.lang.StackOverflowError
        at
org.biojavax.bio.seq.io.RichStreamReader.nextBioEntry(RichStreamReader.java:98)


i will see that in org.biojavax.bio.seq.io.RichStreamReader ili line 98
method call same own method and got StackOverflowError.


    /**
     * {@inheritDoc}
     */
    public BioEntry nextBioEntry() throws NoSuchElementException, BioException
{
        return this.nextBioEntry();
    }


-- 
Configure bugmail: 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