View | Details | Raw Unified | Return to bug 53773 | Differences between
and this patch

Collapse All | Expand All

(-)buildnotes_jdt-core.html (+11 lines)
Lines 62-67 Link Here
62
corresponding to the component type of the array binding. See bug <a href="https://bugs.eclipse.org/bugs/show_bug.cgi?id=120264">120264</a> for details.
62
corresponding to the component type of the array binding. See bug <a href="https://bugs.eclipse.org/bugs/show_bug.cgi?id=120264">120264</a> for details.
63
This API is still subject to change before 3.2 release.
63
This API is still subject to change before 3.2 release.
64
</li>
64
</li>
65
<li>
66
Added optional compiler diagnosis for signaling method parameter assignments.
67
<pre>
68
* COMPILER / Reporting Parameter Assignment
69
*    When enabled, the compiler will issue an error or a warning if a parameter is
70
*    assigned to.
71
*     - option id:         "org.eclipse.jdt.core.compiler.problem.parameterAssignment"
72
*     - possible values:   { "error", "warning", "ignore" }
73
*     - default:           "ignore"
74
</pre>
75
</li>
65
</ul>
76
</ul>
66
77
67
<h3>Problem Reports Fixed</h3>
78
<h3>Problem Reports Fixed</h3>
(-)model/org/eclipse/jdt/core/JavaCore.java (+15 lines)
Lines 56-61 Link Here
56
 *                                 COMPILER_PB_UNUSED_DECLARED_THROWN_EXCEPTION_WHEN_OVERRIDING
56
 *                                 COMPILER_PB_UNUSED_DECLARED_THROWN_EXCEPTION_WHEN_OVERRIDING
57
 *     IBM Corporation - added the following constants:
57
 *     IBM Corporation - added the following constants:
58
 *                                 TIMEOUT_FOR_PARAMETER_NAME_FROM_ATTACHED_JAVADOC
58
 *                                 TIMEOUT_FOR_PARAMETER_NAME_FROM_ATTACHED_JAVADOC
59
 *     IBM Corporation - added the following constants:
60
 *                                 COMPILER_PB_PARAMETER_ASSIGNMENT
59
 *******************************************************************************/
61
 *******************************************************************************/
60
package org.eclipse.jdt.core;
62
package org.eclipse.jdt.core;
61
63
Lines 575-580 Link Here
575
	 */
577
	 */
576
	public static final String COMPILER_PB_FATAL_OPTIONAL_ERROR = PLUGIN_ID + ".compiler.problem.fatalOptionalError"; //$NON-NLS-1$	
578
	public static final String COMPILER_PB_FATAL_OPTIONAL_ERROR = PLUGIN_ID + ".compiler.problem.fatalOptionalError"; //$NON-NLS-1$	
577
	/**
579
	/**
580
	 * Possible configurable option ID.
581
	 * @see #getDefaultOptions()
582
	 * @since 3.2
583
	 */
584
	public static final String COMPILER_PB_PARAMETER_ASSIGNMENT = PLUGIN_ID + ".compiler.problem.parameterAssignment"; //$NON-NLS-1$
585
	/**
578
	 * Possible  configurable option ID.
586
	 * Possible  configurable option ID.
579
	 * @see #getDefaultOptions()
587
	 * @see #getDefaultOptions()
580
	 * @since 2.0
588
	 * @since 2.0
Lines 2262-2267 Link Here
2262
	 *     - possible values:   { "error", "warning", "ignore" }
2270
	 *     - possible values:   { "error", "warning", "ignore" }
2263
	 *     - default:           "warning"
2271
	 *     - default:           "warning"
2264
	 *
2272
	 *
2273
	 * COMPILER / Reporting Parameter Assignment
2274
	 *    When enabled, the compiler will issue an error or a warning if a parameter is
2275
	 *    assigned to.
2276
	 *     - option id:         "org.eclipse.jdt.core.compiler.problem.parameterAssignment"
2277
	 *     - possible values:   { "error", "warning", "ignore" }
2278
	 *     - default:           "ignore"
2279
	 * 
2265
	 * BUILDER / Specifying Filters for Resource Copying Control
2280
	 * BUILDER / Specifying Filters for Resource Copying Control
2266
	 *    Allow to specify some filters to control the resource copy process.
2281
	 *    Allow to specify some filters to control the resource copy process.
2267
	 *     - option id:         "org.eclipse.jdt.core.builder.resourceCopyExclusionFilter"
2282
	 *     - option id:         "org.eclipse.jdt.core.builder.resourceCopyExclusionFilter"
(-)compiler/org/eclipse/jdt/internal/compiler/impl/CompilerOptions.java (-7 / +1 lines)
Lines 888-893 Link Here
888
			OPTION_ReportNonStaticAccessToStatic,
888
			OPTION_ReportNonStaticAccessToStatic,
889
			OPTION_ReportNullReference,
889
			OPTION_ReportNullReference,
890
			OPTION_ReportOverridingPackageDefaultMethod,
890
			OPTION_ReportOverridingPackageDefaultMethod,
891
			OPTION_ReportParameterAssignment,
891
			OPTION_ReportPossibleAccidentalBooleanAssignment,
892
			OPTION_ReportPossibleAccidentalBooleanAssignment,
892
			OPTION_ReportSyntheticAccessEmulation,
893
			OPTION_ReportSyntheticAccessEmulation,
893
			OPTION_ReportTypeParameterHiding,
894
			OPTION_ReportTypeParameterHiding,
Lines 903-909 Link Here
903
			OPTION_ReportUnusedPrivateMember,
904
			OPTION_ReportUnusedPrivateMember,
904
			OPTION_ReportVarargsArgumentNeedCast,
905
			OPTION_ReportVarargsArgumentNeedCast,
905
			OPTION_ReportUnhandledWarningToken,
906
			OPTION_ReportUnhandledWarningToken,
906
			OPTION_ReportParameterAssignment,
907
		};
907
		};
908
		return result;
908
		return result;
909
	}
909
	}
Lines 955-962 Link Here
955
					return "unchecked"; //$NON-NLS-1$
955
					return "unchecked"; //$NON-NLS-1$
956
				case (int) UnusedLabel:
956
				case (int) UnusedLabel:
957
					return "unused"; //$NON-NLS-1$
957
					return "unused"; //$NON-NLS-1$
958
				case (int) (ParameterAssignment >>> 32) :
959
					return "paramAssign"; //$NON-NLS-1$
960
			}
958
			}
961
		}
959
		}
962
		return null;
960
		return null;
Lines 993-1002 Link Here
993
				if ("nls".equals(warningToken)) //$NON-NLS-1$
991
				if ("nls".equals(warningToken)) //$NON-NLS-1$
994
					return NonExternalizedString;
992
					return NonExternalizedString;
995
				break;
993
				break;
996
			case 'p' :
997
				if ("paramAssign".equals(warningToken)) //$NON-NLS-1$
998
					return ParameterAssignment;
999
				break;
1000
			case 's' :
994
			case 's' :
1001
				if ("serial".equals(warningToken)) //$NON-NLS-1$
995
				if ("serial".equals(warningToken)) //$NON-NLS-1$
1002
					return MissingSerialVersion;
996
					return MissingSerialVersion;

Return to bug 53773