Re: [classlib][nio] [question] Synchronization issue on MappedByteBuffer ?

2006-07-03 Thread Jimmy, Jing Lv
Andrew Zhang wrote: Hello everyone, I noticed there are several FIXMEs in MappedByteBufferAdapter.java, which are related to synchronization issue. Following FIXME is for getChar() method: // FIXME Need synchronization as far as the update of this.position is concerned of the following

Re: [classlib][nio] [question] Synchronization issue on MappedByteBuffer ?

2006-07-03 Thread Tim Ellison
Richard Liang wrote: Hello Andrew, IMHO, if the spec does not require a class thread-safe explicitly, we may regard the class as thread-unsafe. Correct me if I'm wrong ;-) I agree -- you may assume unsafe unless spec'd otherwise. Regards, Tim Andrew Zhang wrote: Hello everyone, I

[classlib][nio] [question] Synchronization issue on MappedByteBuffer ?

2006-07-02 Thread Andrew Zhang
Hello everyone, I noticed there are several FIXMEs in MappedByteBufferAdapter.java, which are related to synchronization issue. Following FIXME is for getChar() method: // FIXME Need synchronization as far as the update of this.position is concerned of the following methods? Spec does not say

Re: [classlib][nio] [question] Synchronization issue on MappedByteBuffer ?

2006-07-02 Thread Richard Liang
Hello Andrew, IMHO, if the spec does not require a class thread-safe explicitly, we may regard the class as thread-unsafe. Correct me if I'm wrong ;-) Andrew Zhang wrote: Hello everyone, I noticed there are several FIXMEs in MappedByteBufferAdapter.java, which are related to