Community
Participate
Working Groups
Running eclipse 3.4M6a. With the following java class you receive 2 compilation errors, one of them being incorrect. The first is for the incomplete @SuppressWarnings. The second is: "The field id can only set one of public / protected / private". If the constructor is not there, only the first compilation error occurs. Interestingly, you can see the same problem if you remove the semi-colon from the package statement (with the annotations correctly formed). Neither of these problems exists in 3.3.2 package com.test; @SuppressWarnings(value=) public class Test { public Test() { } @SuppressWarnings(value="") private int id; }
Seems to be related to recovery since the code is syntactically wrong.
Would be indeed related to new recovery in annotations.
Created attachment 97169 [details] Proposed fix
Released for 3.4M7. Tests added AnnotationDietRecoveryTest#test0036() -> test0037()
Verified for 3.4M7 using I20080427-2000.