Community
Participate
Working Groups
The option OPTION_ReportRawTypeReference is missing in the array CompilerOptions#warningOptionNames().
Srikanth, is this related to the changes around the raw type warning?
Oops, just noticed that the list of warnings in warningOptionNames() has not been updated. Not just this, but even other warnings are missing. Karsten, one question, why do you need the string with all warning names? You can simply use the getMap() method to obtain all the warnings, no?
Created attachment 186496 [details] Proposed fix
Ayushman, please review and release if ok. Thanks.
Sorry I have too many entries now. Will attach a new patch shortly.
Created attachment 186497 [details] Proposed fix Many options were missing. Hopefully this is the complete list.
Created attachment 186601 [details] proposed fix with few more options This patch has 3 more options which I think were missing in the previous one. I used the following code to find all field names using reflection and then just removed the non-problem options. public static void main(String[] args) { Class thisclass = CompilerOptions.class; Field[] fields = thisclass.getFields(); System.out.println(); for (int i = 0; i < fields.length; i++) { System.out.println( fields[i].toString() + ","); } }
(In reply to comment #7) > Created attachment 186601 [details] [diff] > proposed fix with few more options The option names here are not sorted though. Number of options in this patch are 87 vs. 84 in the previous one
The three option that have been added are: OPTION_ReportInvalidAnnotation, OPTION_ReportMissingAnnotation, OPTION_ReportMissingJavadoc and none of them are actually used anymore inside the JavaCore options. So I think it is not necessary to report them in the option names list. I wonder if we should not actually completely removed them since they are not used.
(In reply to comment #9) > The three option that have been added are: > OPTION_ReportInvalidAnnotation, > OPTION_ReportMissingAnnotation, > OPTION_ReportMissingJavadoc > > and none of them are actually used anymore inside the JavaCore options. So I > think it is not necessary to report them in the option names list. > > I wonder if we should not actually completely removed them since they are not > used. Right, i didn't check that. So we can go with your patch in that case. And we can also remove these 3 options and places where they are referenced in the jdt.core tests.
I would say so. Please prepare a patch that cleans up the code using the previous patch. Thanks, Ayushman.
Created attachment 186766 [details] final patch Here's the patch with added option names, and removed 3 unused options.
Released in HEAD for 3.7M5. Verification to be done via code inspection
Verified for 3.7 M5 by code inspection.