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 66778 Details for
Bug 186457
Breaking inconsistency between java.nio.Charset in java and in Eclipse
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
Demonstration of the bug
CharsetSub.java (text/java), 770 bytes, created by
Andrew Macheret
on 2007-05-10 16:49:07 EDT
(
hide
)
Description:
Demonstration of the bug
Filename:
MIME Type:
Creator:
Andrew Macheret
Created:
2007-05-10 16:49:07 EDT
Size:
770 bytes
patch
obsolete
>import java.nio.charset.Charset; >import java.nio.charset.CharsetDecoder; >import java.nio.charset.CharsetEncoder; > >public class CharsetSub extends Charset { > public CharsetSub(String name, String[] aliases) { super(name, aliases); } > public CharsetEncoder newEncoder() { return null; } > public CharsetDecoder newDecoder() { return null; } > public boolean contains(Charset x) { return false; } > > // the following appease Eclipse, but will not compile with any version of > // javac > public int compareTo(Object obj) { > return compareTo((Charset) obj); > } > > public static void main(String[] args) { > new CharsetSub("test", new String[] { "test" }); > System.out.println("Compilation succeeded."); > } >}
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 186457
: 66778