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 245658 Details for
Bug 439298
[null] "Missing code implementation in the compiler" when using @NonNullByDefault in package-info.java
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read
this important communication.
[patch]
patch for issue in comment 4
SFMB.patch (text/plain), 1.07 KB, created by
Stephan Herrmann
on 2014-08-02 07:58:34 EDT
(
hide
)
Description:
patch for issue in comment 4
Filename:
MIME Type:
Creator:
Stephan Herrmann
Created:
2014-08-02 07:58:34 EDT
Size:
1.07 KB
patch
obsolete
>diff --git a/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/lookup/SyntheticFactoryMethodBinding.java b/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/lookup/SyntheticFactoryMethodBinding.java >index 349c0a3..aebf6b4 100644 >--- a/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/lookup/SyntheticFactoryMethodBinding.java >+++ b/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/lookup/SyntheticFactoryMethodBinding.java >@@ -36,6 +36,11 @@ > for (MethodBinding parameterizedMethod : parameterizedType.methods()) { > if (parameterizedMethod.original() == this.staticFactoryFor) > return (ParameterizedMethodBinding) parameterizedMethod; >+ if (parameterizedMethod instanceof ProblemMethodBinding) { >+ MethodBinding closestMatch = ((ProblemMethodBinding)parameterizedMethod).closestMatch; >+ if (closestMatch != null && closestMatch.original() == this.staticFactoryFor) >+ return (ParameterizedMethodBinding) closestMatch; >+ } > } > throw new IllegalArgumentException("Type doesn't have its own method?"); //$NON-NLS-1$ > }
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 439298
:
244949
| 245658