Bug 131597 - [1.5][compiler] Generics error with valid construct
Summary: [1.5][compiler] Generics error with valid construct
Status: RESOLVED INVALID
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.2   Edit
Hardware: PC Linux
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: JDT-Core-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords: needinfo
Depends on:
Blocks:
 
Reported: 2006-03-13 15:26 EST by Zorzella Mising name CLA
Modified: 2009-08-30 02:08 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 Zorzella Mising name CLA 2006-03-13 15:26:34 EST
I hate posting non-quite-reproduceable errors, but I have no choice. The (valid) construct below causes this "Problem":

***

Bound mismatch: The type DoubleObservation is not a valid substitute for the bounded parameter <T extends TimeSeriesBase.Observable> of the type TimeSeriesBase<T>.Observable<T>	DoubleObservation.java

***

Now, the funny thing is, if I isolate the snippet (like below), the error does not appear. Furthermore, the first time I played around with copying and pasting the construct to report this bug, the error disappeared from the "Problems" view, only to reappear some days later, after some project changing and "refreshing"...

FWIT, here is the construct, closest to the real defs as virtually possible -- two classes are needed:

public class TimeSeriesBase {
  public static interface Observable<T extends Observable> {
  }
}

public class DoubleObservation implements TimeSeriesBase.Observable<DoubleObservation> {

}

Here's the problem view entry:

Severity	Description	Resource	Path	Location	Creation Time	Id	Project	Type	Sub Category
	Bound mismatch: The type DoubleObservation is not a valid substitute for the bounded parameter <T extends TimeSeriesBase.Observable> of the type TimeSeriesBase<T>.Observable<T>	DoubleObservation.java	zorzella-3awfe/java/com/myproject	line 25	March 9, 2006 10:22:29 PM	1064091	zorzella-3awfe	Java Problem	

Let me re-emphasize, this, by itself, on a project, does not reproduce the error...
Comment 1 Philipe Mulet CLA 2006-03-13 19:03:08 EST
Which build ID are you using ? Also would this be something occuring when incrementally building only (as opposed to clean build) ?
Comment 2 Zorzella Mising name CLA 2006-03-14 00:24:15 EST
It's 3.2M3 (I have another bug filed which prevents me from using M4 and above).

As for a clean build, I can't say for sure (the project is so large it's hard to experiment -- but I'll see what I can do). But I suspect a clean build would clean the error (because of what I described -- I tried to isolate and reproduce it and the problem disappeared altogether until some later refresh).
Comment 3 Philipe Mulet CLA 2006-03-27 06:19:18 EST
Please try to reproduce in latest, and reopen if problems still occur.
There were many bug fixes in this area since 3.2M3, and hopefully this should be resolved.
Comment 4 Denis Roy CLA 2009-08-30 02:08:07 EDT
As of now 'LATER' and 'REMIND' resolutions are no longer supported.
Please reopen this bug if it is still valid for you.