Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[jdt-core-dev] Request approval from project lead

Context:
https://bugs.eclipse.org/bugs/show_bug.cgi?id=504473

In bug 504473 I've proposed that we ignore the following warning in JDT core:

org.eclipse.jdt.core.compiler.problem.fieldHiding=ignore

This is desirable because the new index declares a static field called "type" in every database class, which intentionally hides the variable from its base class. Disabling this warning removes a lot of otherwise-unnecessary @SuppressWarnings tags in JDT core (see attached patch).

This is safe because (as Stephan Hermann points out in comment 4) JDT core projects already require member variables to be qualified with "this", preventing the most common bugs due to unintentional hiding of fields.

However, I would like to get approval from one of the project leads before changing the project settings.

  - Stefan

Back to the top