Bug 156466 - JDT Compiler broken for generics
Summary: JDT Compiler broken for generics
Status: RESOLVED DUPLICATE of bug 156447
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.2   Edit
Hardware: PC Windows XP
: P3 critical (vote)
Target Milestone: ---   Edit
Assignee: JDT-Core-Inbox CLA
QA Contact:
URL: http://icu-project.org
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-09-06 22:12 EDT by Ram Viswanadha CLA
Modified: 2006-09-07 03:50 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ram Viswanadha CLA 2006-09-06 22:12:30 EDT
Compilation of subclasses of java.nio.Charset fail if the the installed JRE is JDK 1.5.0 with Eclipse with an error that subclasses of Charset must implement compareTo(Object o) method.
Compilation works from command line.

To reproduce:
1. Create a project in Eclipse 3.2
2. Set the installed JRE to Sun JDK 1.5.0
3. Add the following class to the project and build.

import java.nio.charset.Charset;
import java.nio.charset.CharsetDecoder;
import java.nio.charset.CharsetEncoder;

public class Charset88591 extends Charset {

    protected Charset88591(String canonicalName, String[] aliases) {
        super(canonicalName, aliases);
        // TODO Auto-generated constructor stub
    }

    public boolean contains(Charset cs) {
        // TODO Auto-generated method stub
        return false;
    }

    public CharsetDecoder newDecoder() {
        // TODO Auto-generated method stub
        return null;
    }

    public CharsetEncoder newEncoder() {
        // TODO Auto-generated method stub
        return null;
    }

}
Comment 1 Frederic Fusier CLA 2006-09-07 03:50:40 EDT

*** This bug has been marked as a duplicate of 156447 ***