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 62375 Details for
Bug 179477
[compiler] problem in first element of array initializer suppresses further problems
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
[patch]
Second part of the patch (for regression induced)
179477-part2.txt (text/plain), 1.16 KB, created by
Philipe Mulet
on 2007-03-29 07:54:17 EDT
(
hide
)
Description:
Second part of the patch (for regression induced)
Filename:
MIME Type:
Creator:
Philipe Mulet
Created:
2007-03-29 07:54:17 EDT
Size:
1.16 KB
patch
obsolete
>### Eclipse Workspace Patch 1.0 >#P org.eclipse.jdt.core >Index: compiler/org/eclipse/jdt/internal/compiler/ast/MemberValuePair.java >=================================================================== >RCS file: /cvsroot/eclipse/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/ast/MemberValuePair.java,v >retrieving revision 1.28 >diff -u -r1.28 MemberValuePair.java >--- compiler/org/eclipse/jdt/internal/compiler/ast/MemberValuePair.java 29 Mar 2007 11:51:56 -0000 1.28 >+++ compiler/org/eclipse/jdt/internal/compiler/ast/MemberValuePair.java 29 Mar 2007 11:53:46 -0000 >@@ -127,7 +127,9 @@ > final Expression[] expressions = initializer.expressions; > if (expressions != null) { > for (int i =0, max = expressions.length; i < max; i++) { >- if (expressions[i].constant == Constant.NotAConstant) { >+ Expression expression = expressions[i]; >+ if (expression.resolvedType == null) continue; // fault-tolerance >+ if (expression.constant == Constant.NotAConstant) { > scope.problemReporter().annotationValueMustBeConstant(this.binding.declaringClass, this.name, expressions[i], false); > } > }
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 179477
:
62086
| 62375