Community
Participate
Working Groups
When running AnnotateAssistTest18 (from JDT/UI) in the IDE, sometimes some of the last tests fail. I could narrow it down to the observation that javaEditor.getViewer().getDocument().get() contained the sources from a previous test, even though that previous test called JavaPlugin.getActivePage().closeAllEditors(false); Most frequent delinquent was testAnnotateParameter_Array4, which creates a jar-file and a source-zip within the root of a Java project. Then refreshLocal(DEPTH_INFINITE, null) is invoked on the project. Still the following access path can give outdated content: type = IJavaProject.findType() // the type is in a ClassFile javaEditor = JavaUI.openInEditor(type) // opens source attachment javaEditor.getViewer().getDocument().get() This looks pretty bad to me but currently I have no idea where to look further. Not even if we should look in or around JavaModelManager or SourceMapper ...
By adding some tracing to org.eclipse.jdt.internal.core.AbstractClassFile.getSource() I could verify that buffers are re-used for files in jars that are re-created for each test.
Those tests even have a tearDown() that deletes all resources in the project except for .* files. This implies that buffers are re-used for files that are deleted and created again. I could observe that deleting the jar file triggers a JavaElementDelta, but I could not find any connection from JavaElementDeltas to buffer management. Can s.o. please point me to how invalidation of Buffers is supposed to work in general?
Bulk move out of 4.14
Bulk move out of 4.16
bulk move out of 4.17
Bulk move out of 4.18
bulk move out of 4.19
Bulk move out of 4.20
Bulk Move.
Bulk move out of 4.22. If this is going to make it to 4.22, feel free to set the target back.
Bulk move out of 4.23
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet. If you have further information on the current state of the bug, please add it. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant. -- The automated Eclipse Genie.