Summary: | Provide compiler warning of using static method via non-static style. | ||
---|---|---|---|
Product: | [Eclipse Project] JDT | Reporter: | Eric Nickell <nickell> |
Component: | Core | Assignee: | Philipe Mulet <philippe_mulet> |
Status: | VERIFIED FIXED | QA Contact: | |
Severity: | enhancement | ||
Priority: | P3 | CC: | skeet |
Version: | 2.0 | ||
Target Milestone: | 2.1 M1 | ||
Hardware: | All | ||
OS: | All | ||
Whiteboard: |
Description
Eric Nickell
2002-07-22 21:04:05 EDT
Makes complete sense to add such a warning. Done, released into HEAD (2.1 stream). Added compiler option for this purpose. JavaCore.COMPILER_PB_STATIC_ACCESS_RECEIVER Entered UI defect (bug 21804) for this setting to be surfaced in preference page. Until UI preference is added, this mode can be used by manually editing the preference file for JDT/Core: <workspace>/.metadata/.plugins/org.eclipse.jdt.core/pref_store.ini Add the line: org.eclipse.jdt.core.compiler.problem.staticAccessReceiver=warning *** Bug 21109 has been marked as a duplicate of this bug. *** Verified. |