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

Collapse All | Expand All

(-)buildnotes_jdt-core.html (-2 / +2 lines)
Lines 152-162 Link Here
152
<br><a href="http://bugs.eclipse.org/bugs/show_bug.cgi?id=89274">89274</a>
152
<br><a href="http://bugs.eclipse.org/bugs/show_bug.cgi?id=89274">89274</a>
153
[1.5][compiler] Enums in hierarchies with generics produces unnecessary warnings and errors
153
[1.5][compiler] Enums in hierarchies with generics produces unnecessary warnings and errors
154
<br><a href="http://bugs.eclipse.org/bugs/show_bug.cgi?id=90137">90137</a>
154
<br><a href="http://bugs.eclipse.org/bugs/show_bug.cgi?id=90137">90137</a>
155
[1.5][compiler] Collections.sort (List<Comparable>) compile error
155
[1.5][compiler] Collections.sort (List&lt;Comparable&gt;) compile error
156
<br><a href="http://bugs.eclipse.org/bugs/show_bug.cgi?id=90879">90879</a>
156
<br><a href="http://bugs.eclipse.org/bugs/show_bug.cgi?id=90879">90879</a>
157
[1.5][compiler] Cannot sort a raw Comparable
157
[1.5][compiler] Cannot sort a raw Comparable
158
<br><a href="http://bugs.eclipse.org/bugs/show_bug.cgi?id=85281">85281</a>
158
<br><a href="http://bugs.eclipse.org/bugs/show_bug.cgi?id=85281">85281</a>
159
[1.5][compiler]  A<++Element> should not be assignable a  A<+Element>
159
[1.5][compiler]  A&lt;++Element&gt; should not be assignable a  A&lt;+Element&gt;
160
<br><a href="http://bugs.eclipse.org/bugs/show_bug.cgi?id=91091">91091</a>
160
<br><a href="http://bugs.eclipse.org/bugs/show_bug.cgi?id=91091">91091</a>
161
[quick assist] Cannot rename type name in file
161
[quick assist] Cannot rename type name in file
162
<br><a href="http://bugs.eclipse.org/bugs/show_bug.cgi?id=90881">90881</a>
162
<br><a href="http://bugs.eclipse.org/bugs/show_bug.cgi?id=90881">90881</a>
(-)compiler/org/eclipse/jdt/core/compiler/IProblem.java (-8 / +8 lines)
Lines 521-528 Link Here
521
	int InvalidDigit = Syntax + Internal + 262;	
521
	int InvalidDigit = Syntax + Internal + 262;	
522
	/** @since 3.1 */
522
	/** @since 3.1 */
523
	int InvalidLowSurrogate = Syntax + Internal + 263;
523
	int InvalidLowSurrogate = Syntax + Internal + 263;
524
	/** @since 3.1 */
524
	int InvalidHighSurrogate = Syntax + Internal + 264;
525
	int InvalidHighSurrogate = Syntax + Internal + 264;
525
	
526
526
527
	// type related problems
527
	// type related problems
528
	/** @since 3.1 */
528
	/** @since 3.1 */
Lines 699-705 Link Here
699
	int IncompatibleReturnTypeForNonInheritedInterfaceMethod = MethodRelated + 413;
699
	int IncompatibleReturnTypeForNonInheritedInterfaceMethod = MethodRelated + 413;
700
	/** @since 2.1 */
700
	/** @since 2.1 */
701
	int IncompatibleExceptionInThrowsClauseForNonInheritedInterfaceMethod = MethodRelated + 414;
701
	int IncompatibleExceptionInThrowsClauseForNonInheritedInterfaceMethod = MethodRelated + 414;
702
	/** @since 3.0 */
702
	/** @since 3.1 */
703
	int IllegalVararg = MethodRelated + 415;
703
	int IllegalVararg = MethodRelated + 415;
704
704
705
	// code snippet support
705
	// code snippet support
Lines 762-770 Link Here
762
	/** @since 3.0 */
762
	/** @since 3.0 */
763
	int JavadocInvalidThrowsClassName = Javadoc + Internal + 481;
763
	int JavadocInvalidThrowsClassName = Javadoc + Internal + 481;
764
	/** @since 3.0 */
764
	/** @since 3.0 */
765
	int JavadocMissingReference = Javadoc + Internal + 482;
765
	int JavadocMissingSeeReference = Javadoc + Internal + 482;
766
	/** @since 3.0 */
766
	/** @since 3.0 */
767
	int JavadocInvalidReference = Javadoc + Internal + 483;
767
	int JavadocInvalidSeeReference = Javadoc + Internal + 483;
768
	/** @since 3.0 */
768
	/** @since 3.0 */
769
	int JavadocInvalidSeeHref = Javadoc + Internal + 484;
769
	int JavadocInvalidSeeHref = Javadoc + Internal + 484;
770
	/** @since 3.0 */
770
	/** @since 3.0 */
Lines 836-845 Link Here
836
	/** @since 3.0 */
836
	/** @since 3.0 */
837
	int JavadocUnterminatedInlineTag = Javadoc + Internal + 512;
837
	int JavadocUnterminatedInlineTag = Javadoc + Internal + 512;
838
	/** @since 3.0 */
838
	/** @since 3.0 */
839
	int JavadocMissingHashCharacter = Javadoc + Internal + 513;
839
	int JavadocMalformedSeeReference = Javadoc + Internal + 513;
840
	/** @since 3.0 */
840
	/** @since 3.1 */
841
	int JavadocMalformedSeeReference = Javadoc + Internal + 514;
841
	int JavadocMissingHashCharacter = Javadoc + Internal + 514;
842
	/** @since 3.0 */
842
	/** @since 3.1 */
843
	int JavadocEmptyReturnTag = Javadoc + Internal + 515;
843
	int JavadocEmptyReturnTag = Javadoc + Internal + 515;
844
	/** @since 3.1 */
844
	/** @since 3.1 */
845
	int JavadocInvalidValueReference = Javadoc + Internal + 516;
845
	int JavadocInvalidValueReference = Javadoc + Internal + 516;
(-)compiler/org/eclipse/jdt/internal/compiler/problem/ProblemReporter.java (-4 / +4 lines)
Lines 733-739 Link Here
733
		case IProblem.JavadocUnexpectedTag:
733
		case IProblem.JavadocUnexpectedTag:
734
		case IProblem.JavadocDuplicateReturnTag:
734
		case IProblem.JavadocDuplicateReturnTag:
735
		case IProblem.JavadocInvalidThrowsClass:
735
		case IProblem.JavadocInvalidThrowsClass:
736
		case IProblem.JavadocInvalidReference:
736
		case IProblem.JavadocInvalidSeeReference:
737
		case IProblem.JavadocInvalidParamTagName:
737
		case IProblem.JavadocInvalidParamTagName:
738
		case IProblem.JavadocInvalidParamTagTypeParameter:
738
		case IProblem.JavadocInvalidParamTagTypeParameter:
739
		case IProblem.JavadocMalformedSeeReference:
739
		case IProblem.JavadocMalformedSeeReference:
Lines 759-765 Link Here
759
		case IProblem.JavadocInvalidThrowsClassName:
759
		case IProblem.JavadocInvalidThrowsClassName:
760
		case IProblem.JavadocDuplicateThrowsClassName:
760
		case IProblem.JavadocDuplicateThrowsClassName:
761
		case IProblem.JavadocMissingThrowsClassName:
761
		case IProblem.JavadocMissingThrowsClassName:
762
		case IProblem.JavadocMissingReference:
762
		case IProblem.JavadocMissingSeeReference:
763
		case IProblem.JavadocInvalidValueReference:
763
		case IProblem.JavadocInvalidValueReference:
764
		case IProblem.JavadocUndefinedField:
764
		case IProblem.JavadocUndefinedField:
765
		case IProblem.JavadocAmbiguousField:
765
		case IProblem.JavadocAmbiguousField:
Lines 3566-3572 Link Here
3566
	this.handle(IProblem.JavadocInvalidParamTagTypeParameter, NoArgument, NoArgument, sourceStart, sourceEnd);
3566
	this.handle(IProblem.JavadocInvalidParamTagTypeParameter, NoArgument, NoArgument, sourceStart, sourceEnd);
3567
}
3567
}
3568
public void javadocInvalidReference(int sourceStart, int sourceEnd) {
3568
public void javadocInvalidReference(int sourceStart, int sourceEnd) {
3569
	this.handle(IProblem.JavadocInvalidReference, NoArgument, NoArgument, sourceStart, sourceEnd);
3569
	this.handle(IProblem.JavadocInvalidSeeReference, NoArgument, NoArgument, sourceStart, sourceEnd);
3570
}
3570
}
3571
public void javadocInvalidSeeReferenceArgs(int sourceStart, int sourceEnd) {
3571
public void javadocInvalidSeeReferenceArgs(int sourceStart, int sourceEnd) {
3572
	this.handle(IProblem.JavadocInvalidSeeArgs, NoArgument, NoArgument, sourceStart, sourceEnd);
3572
	this.handle(IProblem.JavadocInvalidSeeArgs, NoArgument, NoArgument, sourceStart, sourceEnd);
Lines 3656-3662 Link Here
3656
}
3656
}
3657
public void javadocMissingReference(int sourceStart, int sourceEnd, int modifiers){
3657
public void javadocMissingReference(int sourceStart, int sourceEnd, int modifiers){
3658
	if (javadocVisibility(this.options.reportInvalidJavadocTagsVisibility, modifiers))
3658
	if (javadocVisibility(this.options.reportInvalidJavadocTagsVisibility, modifiers))
3659
		this.handle(IProblem.JavadocMissingReference, NoArgument, NoArgument, sourceStart, sourceEnd);
3659
		this.handle(IProblem.JavadocMissingSeeReference, NoArgument, NoArgument, sourceStart, sourceEnd);
3660
}
3660
}
3661
public void javadocMissingReturnTag(int sourceStart, int sourceEnd, int modifiers){
3661
public void javadocMissingReturnTag(int sourceStart, int sourceEnd, int modifiers){
3662
	boolean overriding = (modifiers & (CompilerModifiers.AccImplementing|CompilerModifiers.AccOverriding)) != 0;
3662
	boolean overriding = (modifiers & (CompilerModifiers.AccImplementing|CompilerModifiers.AccOverriding)) != 0;
(-)dom/org/eclipse/jdt/core/dom/ITypeBinding.java (+1 lines)
Lines 178-183 Link Here
178
	 * 
178
	 * 
179
	 * @return the binding of the method that declares this type, or
179
	 * @return the binding of the method that declares this type, or
180
	 * <code>null</code> if none
180
	 * <code>null</code> if none
181
	 * @since 3.1
181
	 */
182
	 */
182
	public IMethodBinding getDeclaringMethod();
183
	public IMethodBinding getDeclaringMethod();
183
184
(-)model/org/eclipse/jdt/core/JavaCore.java (-1 / +1 lines)
Lines 469-475 Link Here
469
	/**
469
	/**
470
	 * Possible  configurable option ID.
470
	 * Possible  configurable option ID.
471
	 * @see #getDefaultOptions()
471
	 * @see #getDefaultOptions()
472
	 * @since 3.0
472
	 * @since 3.1
473
	 */
473
	 */
474
	public static final String COMPILER_PB_INVALID_JAVADOC_TAGS__NOT_VISIBLE_REF = PLUGIN_ID + ".compiler.problem.invalidJavadocTagsNotVisibleRef"; //$NON-NLS-1$
474
	public static final String COMPILER_PB_INVALID_JAVADOC_TAGS__NOT_VISIBLE_REF = PLUGIN_ID + ".compiler.problem.invalidJavadocTagsNotVisibleRef"; //$NON-NLS-1$
475
	/**
475
	/**
(-)model/org/eclipse/jdt/core/Signature.java (+8 lines)
Lines 1166-1171 Link Here
1166
 * @return the list of thrown exception type signatures
1166
 * @return the list of thrown exception type signatures
1167
 * @exception IllegalArgumentException if the signature is syntactically
1167
 * @exception IllegalArgumentException if the signature is syntactically
1168
 *   incorrect
1168
 *   incorrect
1169
 *
1170
 * @since 3.1
1169
 */
1171
 */
1170
public static String[] getThrownExceptionTypes(String methodSignature) throws IllegalArgumentException {
1172
public static String[] getThrownExceptionTypes(String methodSignature) throws IllegalArgumentException {
1171
	char[][] parameterTypes = getThrownExceptionTypes(methodSignature.toCharArray());
1173
	char[][] parameterTypes = getThrownExceptionTypes(methodSignature.toCharArray());
Lines 1180-1185 Link Here
1180
 * @return the list of thrown exception type signatures
1182
 * @return the list of thrown exception type signatures
1181
 * @exception IllegalArgumentException if the signature is syntactically
1183
 * @exception IllegalArgumentException if the signature is syntactically
1182
 *   incorrect
1184
 *   incorrect
1185
 *
1186
 * @since 3.1
1183
 */
1187
 */
1184
public static char[][] getThrownExceptionTypes(char[] methodSignature) throws IllegalArgumentException {
1188
public static char[][] getThrownExceptionTypes(char[] methodSignature) throws IllegalArgumentException {
1185
	// skip type parameters
1189
	// skip type parameters
Lines 2004-2009 Link Here
2004
 * @return new signature without capture information or siganture itself
2008
 * @return new signature without capture information or siganture itself
2005
 * 	if no specific capture information was there
2009
 * 	if no specific capture information was there
2006
 * @exception NullPointerException if <code>captureSignature</code> is null
2010
 * @exception NullPointerException if <code>captureSignature</code> is null
2011
 *
2007
 * @since 3.1
2012
 * @since 3.1
2008
 * TODO (frederic) Create remove(char[], char) method on CharOperation and call it from here
2013
 * TODO (frederic) Create remove(char[], char) method on CharOperation and call it from here
2009
 */
2014
 */
Lines 2046-2051 Link Here
2046
 * @return new signature without capture information or siganture itself
2051
 * @return new signature without capture information or siganture itself
2047
 * 	if no specific capture information was there
2052
 * 	if no specific capture information was there
2048
 * @exception NullPointerException if <code>captureSignature</code> is null
2053
 * @exception NullPointerException if <code>captureSignature</code> is null
2054
 *
2049
 * @since 3.1
2055
 * @since 3.1
2050
 */
2056
 */
2051
public static String removeCaptureFromMethod(String captureSignature) {
2057
public static String removeCaptureFromMethod(String captureSignature) {
Lines 2679-2684 Link Here
2679
 * variable argument, <code>false</code> otherwise
2685
 * variable argument, <code>false</code> otherwise
2680
 * @see #toCharArray(char[], char[], char[][], boolean, boolean)
2686
 * @see #toCharArray(char[], char[], char[][], boolean, boolean)
2681
 * @return the string representation of the method signature
2687
 * @return the string representation of the method signature
2688
 *
2689
 * @since 3.1
2682
 */
2690
 */
2683
public static String toString(String methodSignature, String methodName, String[] parameterNames, boolean fullyQualifyTypeNames, boolean includeReturnType, boolean isVarArgs) {
2691
public static String toString(String methodSignature, String methodName, String[] parameterNames, boolean fullyQualifyTypeNames, boolean includeReturnType, boolean isVarArgs) {
2684
	char[][] params;
2692
	char[][] params;
(-)model/org/eclipse/jdt/core/ToolFactory.java (-1 / +2 lines)
Lines 375-381 Link Here
375
	 * the Unicode 4.0 is supporte, otherwise Unicode 3.0 is supported.
375
	 * the Unicode 4.0 is supporte, otherwise Unicode 3.0 is supported.
376
  	 * @return a scanner
376
  	 * @return a scanner
377
	 * @see org.eclipse.jdt.core.compiler.IScanner
377
	 * @see org.eclipse.jdt.core.compiler.IScanner
378
     * @since 3.0
378
	 *
379
     * @since 3.1
379
	 */
380
	 */
380
	public static IScanner createScanner(boolean tokenizeComments, boolean tokenizeWhiteSpace, boolean recordLineSeparator, String sourceLevel, String complianceLevel) {
381
	public static IScanner createScanner(boolean tokenizeComments, boolean tokenizeWhiteSpace, boolean recordLineSeparator, String sourceLevel, String complianceLevel) {
381
		PublicScanner scanner = null;
382
		PublicScanner scanner = null;
(-)model/org/eclipse/jdt/core/eval/IEvaluationContext.java (-1 / +1 lines)
Lines 202-208 Link Here
202
	 *	  <li>The position specified is less than -1 or is greater than the snippet's
202
	 *	  <li>The position specified is less than -1 or is greater than the snippet's
203
	 *	    length (INDEX_OUT_OF_BOUNDS)</li>
203
	 *	    length (INDEX_OUT_OF_BOUNDS)</li>
204
	 *  </ul>
204
	 *  </ul>
205
	 * @since 3.0
205
	 * @since 3.1
206
	 */
206
	 */
207
	public void codeComplete(
207
	public void codeComplete(
208
		String codeSnippet,
208
		String codeSnippet,
(-)search/org/eclipse/jdt/core/search/SearchEngine.java (-1 / +1 lines)
Lines 579-585 Link Here
579
	 *	<ul>
579
	 *	<ul>
580
	 *		<li>the classpath is incorrectly set</li>
580
	 *		<li>the classpath is incorrectly set</li>
581
	 *	</ul>
581
	 *	</ul>
582
	 * @since 3.0
582
	 * @since 3.1
583
	 */
583
	 */
584
	public void searchAllTypeNames(
584
	public void searchAllTypeNames(
585
		final char[] packageName, 
585
		final char[] packageName, 
(-)search/org/eclipse/jdt/core/search/SearchMatch.java (-2 / +2 lines)
Lines 290-296 Link Here
290
	}
290
	}
291
291
292
	/**
292
	/**
293
	 * Returns the rule used while creating the match.
293
	 * Set the rule used while reporting the match.
294
	 * 
294
	 * 
295
	 * @param rule one of {@link SearchPattern#R_FULL_MATCH}, {@link SearchPattern#R_EQUIVALENT_MATCH}
295
	 * @param rule one of {@link SearchPattern#R_FULL_MATCH}, {@link SearchPattern#R_EQUIVALENT_MATCH}
296
	 * 	or {@link SearchPattern#R_ERASURE_MATCH}
296
	 * 	or {@link SearchPattern#R_ERASURE_MATCH}
Lines 301-307 Link Here
301
	}
301
	}
302
302
303
	/**
303
	/**
304
	 * Returns whether the associated element is a raw type/method or not.
304
	 * Set whether the associated element is a raw type/method or not.
305
	 * 
305
	 * 
306
	 * @param raw <code>true</code> if this search match is associated to a raw
306
	 * @param raw <code>true</code> if this search match is associated to a raw
307
	 * type or method and <code>false</code> otherwise
307
	 * type or method and <code>false</code> otherwise
(-)search/org/eclipse/jdt/core/search/SearchPattern.java (-4 / +4 lines)
Lines 1281-1294 Link Here
1281
	 * Type pattern are formed by [qualification '.']type [typeArguments].
1281
	 * Type pattern are formed by [qualification '.']type [typeArguments].
1282
	 * e.g. java.lang.Object
1282
	 * e.g. java.lang.Object
1283
	 *		Runnable
1283
	 *		Runnable
1284
	 *		List<String>
1284
	 *		List&lt;String&gt;
1285
	 *
1285
	 *
1286
	 * @since 3.1
1286
	 * @since 3.1
1287
	 *		Type arguments can be specified to search references to parameterized types.
1287
	 *		Type arguments can be specified to search references to parameterized types.
1288
	 * 	and look as follow: '<' { [ '?' {'extends'|'super'} ] type ( ',' [ '?' {'extends'|'super'} ] type )* | '?' } '>'
1288
	 * 	and look as follow: '&lt;' { [ '?' {'extends'|'super'} ] type ( ',' [ '?' {'extends'|'super'} ] type )* | '?' } '&gt;'
1289
	 * 	Please note that:
1289
	 * 	Please note that:
1290
	 * 		- '*' is not valid inside type arguments definition <>
1290
	 * 		- '*' is not valid inside type arguments definition &lt;&gt;
1291
	 * 		- '?' is treated as a wildcard when it is inside <> (ie. it must be put on first position of the type argument)
1291
	 * 		- '?' is treated as a wildcard when it is inside &lt;&gt; (ie. it must be put on first position of the type argument)
1292
	 */
1292
	 */
1293
	private static SearchPattern createTypePattern(String patternString, int limitTo, int matchRule, char indexSuffix) {
1293
	private static SearchPattern createTypePattern(String patternString, int limitTo, int matchRule, char indexSuffix) {
1294
		
1294
		

Return to bug 92872