Community
Participate
Working Groups
The creation of a buffer can potentially be overridden for a working copy by overriding the method: org.eclipse.jdt.core.WorkingCopyOwner.createBuffer(ICompilationUnit) But it looks like there are some calls that retrieve the buffer of a working copy without checking this method. org.eclipse.jdt.internal.core.ClassFileWorkingCopy.openBuffer(IProgressMonitor, Object) org.eclipse.jdt.internal.core.CompilationUnit.openBuffer(IProgressMonitor, Object) Some calls directly target the buffer manager without checking if the buffer should be retrieved through the working copy owner. For example: org.eclipse.jdt.internal.core.CompilationUnit.getContents() This looks suspicious.
Jay, please have a look at this. I believe we can get inconsistencies if the working copy owner is used to set the buffer of the working copy.
Closing as INVALID. Only the creation of the buffer should use the working copy owner. All further calls to the buffer should go through the buffer manager. It looks ok.
Verified for 3.6M7
Verified.