Community
Participate
Working Groups
(3.1M4) The testcase is MyAnnotationType.java with the following contents: package package1.packageTp1; /** * MyAnnotationType annotation type. */ @interface MyAnnotationType { int field2 = 0; String method1(); } Deletion of "method1" via setting the CU's buffer contents (IBuffer.setContents, IBuffer.save) does not fire "method1 [-]" in the JDT delta, only "MyAnnotationType(cu) [*]" comes in.
Do you call ICompilationUnit#reconcile(...) after setting the buffer contents ?
Sorry, my fault. I thought I was working with the primary CU there, so I didn't call reconcile(...) but it turned out to be a working copy. Thanks.
No problem. Closing then.