| Summary: | Background Indexer Crash Recovery logs many exceptions | ||
|---|---|---|---|
| Product: | [Eclipse Project] JDT | Reporter: | Ed Merks <Ed.Merks> |
| Component: | Core | Assignee: | Kent Johnson <kent_johnson> |
| Status: | RESOLVED DUPLICATE | QA Contact: | |
| Severity: | normal | ||
| Priority: | P3 | ||
| Version: | 3.0 | ||
| Target Milestone: | 3.0 RC1 | ||
| Hardware: | PC | ||
| OS: | Windows 2000 | ||
| Whiteboard: | |||
|
Description
Ed Merks
From the stack trace, this is the call we are making in DiskIndex:
DataInputStream stream = new DataInputStream(new BufferedInputStream(new
FileInputStream(getIndexFile())));
The constructor in BufferedInputStream is:
public BufferedInputStream(InputStream in) {
this(in, defaultBufferSize);
}
which calls:
public BufferedInputStream(InputStream in, int size) {
super(in);
if (size <= 0) {
throw new IllegalArgumentException("Buffer size <= 0");
}
buf = new byte[size];
}
We do NOT pass in the buffer size (we use the default) so how can it be <= 0?
Its initialized as:
private static int defaultBufferSize = 2048;
*** This bug has been marked as a duplicate of 57419 ***
|