This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
I tried the truss utility and it showed that some reads/writes from NetBeans during startup are unbuffered. Following code is taken from ObjectInputStream.java: private byte peekCode() throws IOException, StreamCorruptedException{ while (currCode == 0) { int newcode = in.read(); // Read byte from the underlying stream // THIS IS THE PROBLEM if (newcode < 0) throw new EOFException("Expecting code");
Here is a sample output from truss: (operation, file descriptor, data buffer read, size of data buffer) = number of read bytes read(10, " p", 1) = 1 read(10, " p", 1) = 1 read(10, " p", 1) = 1 read(10, " p", 1) = 1 read(10, " p", 1) = 1 read(10, " p", 1) = 1 read(10, " p", 1) = 1 read(10, " q", 1) = 1
It seems that ObjectStreams are mostly buffered but not completely.
Version: 'Dev' -> 3.2
Target milestone -> 3.3
higher prio
Fixed together with adding buffering to core's projects code.
Verified.
Resolved for 3.4.x or earlier, no new info since then -> closing.