Community
Participate
Working Groups
Build 20030925+jdt/core 20030929 patch+enabling ui usage of working copy owners See step in bug 41583.
The problem lies on the UI side. After the commit operation, the resource got updated correctly, but the editor fails to notice this and persists in showing the dirty indicator. If switching to a different window and returning to editor window, then it will prompt to reload the file change.
We verified that we setup the buffer correctly on connect. The save however does not get called on that buffer for non-build path files. Do you save to the right buffer? Set a breakpoint in DocumentAdapter2.save(...) and save a normal CU and a non-build-path CU to see the difference
Agreed. This was a long standing bug. When a working copy isn't on the classpath, we never saved the buffer, but rather updated the resource directly. Now you removed the document explicit save, this became visible. All commit situations will now properly enforce the buffer is officially saved. Fixed (released for integration build > 20030930, since needs extra testing).
Fixed
Just to clarify, this has nothing to do with using working copy owners on our end, but rather a consequence of UI code having removed the document explicit save when they use wc owners.
can you provide a preview after todays I-build?
The new working copy handling had a new contract (commitWorkingCopy instead of commit) and we assumed it to be correct that's why we never saved in that code path.
They are quite the same actually. Will post a preview as soon as it passes our tests (4 failures at the moment).
Preview posted on JDT/Core page.
Verified.