Bug 96979 - inconvertible types not detected by Eclipse
Summary: inconvertible types not detected by Eclipse
Status: RESOLVED INVALID
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.1   Edit
Hardware: PC Windows 2000
: P3 normal with 2 votes (vote)
Target Milestone: ---   Edit
Assignee: JDT-Core-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords: needinfo
Depends on:
Blocks:
 
Reported: 2005-05-27 10:06 EDT by MH CLA
Modified: 2009-08-30 02:06 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 MH CLA 2005-05-27 10:06:21 EDT
With the following code snippet:

--- (added "<?, ?>" to Hashtable and forgot to replace instanceof Properties): -
----
 public void setInputValues(Hashtable<?, ?> values) throws CheckException {
        if (values instanceof Properties) {
-------

Eclipse didn't complain even while cleaning the project multiple times. But 
When compiling the code via ANT, I get this:

-------
       [javac] C:\data\java\src\de\i\a\b\CRP.java:273: inconvertible types
       [javac] found   : java.util.Hashtable<capture of ?,capture of ?>
       [javac] required: java.util.Properties
       [javac]         if (values instanceof Properties) {
       [javac]             ^
       [javac] 1 error
-------

As this seems to be an error and Eclipse is not telling it, I guess this is a 
bug?
Comment 1 Olivier Thomann CLA 2005-09-27 09:10:55 EDT
Could you please provide steps to reproduce? Do you have autobuild on?
What is your build id?
Comment 2 Olivier Thomann CLA 2006-10-06 14:56:36 EDT
Closing as REMIND.
Please reopen if you get it again with either 3.2.1 or latest integration build
Comment 3 Naveen Bandhu CLA 2006-11-02 04:28:48 EST
(In reply to comment #2)
> Closing as REMIND.
> Please reopen if you get it again with either 3.2.1 or latest integration build



The problem exists even with Eclipse 3.2.1.
Comment 4 Philipe Mulet CLA 2006-11-02 09:21:40 EST
Good to know. Now what about providing steps to reproduce ?
Comment 5 Olivier Thomann CLA 2006-11-02 09:24:19 EST
Reopening. Please provide steps to reproduce.
Comment 6 Olivier Thomann CLA 2006-11-02 10:27:47 EST
Closing as REMIND as long as steps to reproduce have not been provided.
Comment 7 Denis Roy CLA 2009-08-30 02:06:38 EDT
As of now 'LATER' and 'REMIND' resolutions are no longer supported.
Please reopen this bug if it is still valid for you.