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 133661 Details for
Bug 263468
Wrong "Unreachable code" error decoration
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
[patch]
Updates in analyseCode() method of MethodDeclaration class.
patchFor263468 (text/plain), 1.17 KB, created by
Chris Jaun
on 2009-04-28 18:47:30 EDT
(
hide
)
Description:
Updates in analyseCode() method of MethodDeclaration class.
Filename:
MIME Type:
Creator:
Chris Jaun
Created:
2009-04-28 18:47:30 EDT
Size:
1.17 KB
patch
obsolete
>### Eclipse Workspace Patch 1.0 >#P org.eclipse.wst.jsdt.core >Index: src/org/eclipse/wst/jsdt/internal/compiler/ast/MethodDeclaration.java >=================================================================== >RCS file: /cvsroot/webtools/sourceediting/plugins/org.eclipse.wst.jsdt.core/src/org/eclipse/wst/jsdt/internal/compiler/ast/MethodDeclaration.java,v >retrieving revision 1.13 >diff -u -r1.13 MethodDeclaration.java >--- src/org/eclipse/wst/jsdt/internal/compiler/ast/MethodDeclaration.java 23 Apr 2009 08:28:38 -0000 1.13 >+++ src/org/eclipse/wst/jsdt/internal/compiler/ast/MethodDeclaration.java 28 Apr 2009 22:47:12 -0000 >@@ -88,7 +88,10 @@ > for (int i = 0, count = statements.length; i < count; i++) { > Statement stat = statements[i]; > if (!stat.complainIfUnreachable(flowInfo, scope, didAlreadyComplain)) { >- flowInfo = stat.analyseCode(scope, methodContext, flowInfo); >+ if (stat instanceof AbstractMethodDeclaration) { >+ ((AbstractMethodDeclaration)stat).analyseCode(this.scope, null, flowInfo.copy()); >+ } else >+ flowInfo = stat.analyseCode(scope, methodContext, flowInfo); > } else { > didAlreadyComplain = true; > }
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
Flags:
thatnitind
:
iplog+
thatnitind
:
review+
Actions:
View
|
Diff
Attachments on
bug 263468
:
124551
| 133661