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 148307 Details for
Bug 290791
[compiler] Local final variable is uninitialized during the construction of the anonymous nested class instance.
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.
Reproduction
Sample.java (text/x-java), 572 bytes, created by
topi.nieminen
on 2009-09-29 05:35:09 EDT
(
hide
)
Description:
Reproduction
Filename:
MIME Type:
Creator:
topi.nieminen
Created:
2009-09-29 05:35:09 EDT
Size:
572 bytes
patch
obsolete
>public abstract class Sample { > public abstract void hook(); > > public Sample() { > super(); > hook(); > } > > public static void main(String[] args) { > final String a = "a"; > final String b = new String("b"); > > Sample sample = new Sample() { > public void hook() { > if (a == null || b == null) { > System.out.println("why is 'b' null here? bug? a=" + a + ", b=" + b); > } > else { > System.out.println("a=" + a + ", b=" + b); > } > } > }; > > System.out.println("construction completed:"); > sample.hook(); > } >}
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 Raw
Actions:
View
Attachments on
bug 290791
: 148307