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 212874 Details for
Bug 372319
Unexpected 'The local variable i may not have been initialized' compile error
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
[patch]
proposed fix
Bug_372319.patch (text/plain), 1.39 KB, created by
Stephan Herrmann
on 2012-03-19 15:25:22 EDT
(
hide
)
Description:
proposed fix
Filename:
MIME Type:
Creator:
Stephan Herrmann
Created:
2012-03-19 15:25:22 EDT
Size:
1.39 KB
patch
obsolete
>diff --git a/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/ast/FakedTrackingVariable.java b/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/ast/FakedTrackingVariable.java >index 4ac6c2f..404f065 100644 >--- a/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/ast/FakedTrackingVariable.java >+++ b/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/ast/FakedTrackingVariable.java >@@ -529,15 +529,17 @@ > */ > private int getNullStatusAggressively(LocalVariableBinding local, FlowInfo flowInfo) { > int reachMode = flowInfo.reachMode(); >- int status = 0; >- try { >- // unreachable flowInfo is too shy in reporting null-issues, temporarily forget reachability: >- if (reachMode != FlowInfo.REACHABLE) >- flowInfo.tagBits &= ~FlowInfo.UNREACHABLE; >- status = flowInfo.nullStatus(local); >- } finally { >- // reset >- flowInfo.tagBits |= reachMode; >+ int status = FlowInfo.UNKNOWN; >+ if (flowInfo != FlowInfo.DEAD_END) { >+ try { >+ // unreachable flowInfo is too shy in reporting null-issues, temporarily forget reachability: >+ if (reachMode != FlowInfo.REACHABLE) >+ flowInfo.tagBits &= ~FlowInfo.UNREACHABLE; >+ status = flowInfo.nullStatus(local); >+ } finally { >+ // reset >+ flowInfo.tagBits |= reachMode; >+ } > } > // at this point some combinations are not useful so flatten to a single bit: > if ((status & FlowInfo.NULL) != 0) {
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 372319
:
211937
|
212011
|
212154
|
212156
|
212432
|
212620
|
212729
|
212822
|
212874
|
212880
|
212884