Re: [Biojava-l] Bug in FastaFormat.java

2001-12-13 Thread Thomas Down
On Thu, Dec 13, 2001 at 11:51:15AM -0500, Simon Foote wrote: > There appears to be a bug in the writeSequence(Sequence seq, PrintStream os) > method of FastaFormat.java > > If you have a sequence whose length is exactly divisable by the > lineWidth (60), then you get an IndexOutOfBounds exceptio

[Biojava-l] Bug in FastaFormat.java

2001-12-13 Thread Simon Foote
There appears to be a bug in the writeSequence(Sequence seq, PrintStream os) method of FastaFormat.java If you have a sequence whose length is exactly divisable by the lineWidth (60), then you get an IndexOutOfBounds exception when writing it out. The problem occurs at line 207: for(int pos =