Download
Getting Started
Members
Projects
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
More
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
Toggle navigation
Bugzilla – Attachment 51597 Details for
Bug 160015
[1.5][javadoc] Missing warning on autoboxing compatible methods
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
[patch]
Proposed patch
v00.txt (text/plain), 2.01 KB, created by
Frederic Fusier
on 2006-10-07 10:49:50 EDT
(
hide
)
Description:
Proposed patch
Filename:
MIME Type:
Creator:
Frederic Fusier
Created:
2006-10-07 10:49:50 EDT
Size:
2.01 KB
patch
obsolete
>### Eclipse Workspace Patch 1.0 >#P org.eclipse.jdt.core >Index: compiler/org/eclipse/jdt/internal/compiler/ast/JavadocMessageSend.java >=================================================================== >RCS file: /cvsroot/eclipse/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/ast/JavadocMessageSend.java,v >retrieving revision 1.26 >diff -u -r1.26 JavadocMessageSend.java >--- compiler/org/eclipse/jdt/internal/compiler/ast/JavadocMessageSend.java 28 Mar 2006 20:29:56 -0000 1.26 >+++ compiler/org/eclipse/jdt/internal/compiler/ast/JavadocMessageSend.java 7 Oct 2006 14:19:20 -0000 >@@ -164,6 +164,9 @@ > } > } > } >+ } else if (scope.parameterCompatibilityLevel(this.binding, argumentTypes) == Scope.AUTOBOX_COMPATIBLE) { >+ MethodBinding problem = new ProblemMethodBinding(this.binding, this.selector, argumentTypes, ProblemReasons.Ambiguous); >+ scope.problemReporter().javadocInvalidMethod(this, problem, scope.getDeclarationModifiers()); > } > if (isMethodUseDeprecated(this.binding, scope, true)) { > scope.problemReporter().javadocDeprecatedMethod(this.binding, this, scope.getDeclarationModifiers()); >Index: compiler/org/eclipse/jdt/internal/compiler/lookup/Scope.java >=================================================================== >RCS file: /cvsroot/eclipse/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/lookup/Scope.java,v >retrieving revision 1.285 >diff -u -r1.285 Scope.java >--- compiler/org/eclipse/jdt/internal/compiler/lookup/Scope.java 26 Sep 2006 06:28:26 -0000 1.285 >+++ compiler/org/eclipse/jdt/internal/compiler/lookup/Scope.java 7 Oct 2006 14:19:27 -0000 >@@ -3406,7 +3406,7 @@ > return lastMethodScope; // may answer null if no method around > } > >- protected int parameterCompatibilityLevel(MethodBinding method, TypeBinding[] arguments) { >+ public int parameterCompatibilityLevel(MethodBinding method, TypeBinding[] arguments) { > TypeBinding[] parameters = method.parameters; > int paramLength = parameters.length; > int argLength = arguments.length;
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 160015
: 51597