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 106301 Details for
Bug 239225
[1.5][compiler] False Compiler error when referencing statics in enum - initialisation
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
Testcase-Example
Status.java (text/java), 322 bytes, created by
Sebastian Graf
on 2008-07-02 07:45:10 EDT
(
hide
)
Description:
Testcase-Example
Filename:
MIME Type:
Creator:
Sebastian Graf
Created:
2008-07-02 07:45:10 EDT
Size:
322 bytes
patch
obsolete
>import java.util.HashMap; >import java.util.Map; > >public enum Status { > GOOD((byte) 0x00), BAD((byte) 0x02); > > private static Map<Byte, Status> mapping; > > private Status(final byte newValue) { > > if (Status.mapping == null) { > Status.mapping = new HashMap<Byte, Status>(); > } > > Status.mapping.put(newValue, this); > } >}
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 239225
: 106301