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 14579 Details for
Bug 74096
[1.5] visibility check ignores type bounds?
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
Demonstrates the bug (which is two spurious compile errors)
VisibilityBug.java (text/plain), 937 bytes, created by
David Hovemeyer
on 2004-09-16 14:21:43 EDT
(
hide
)
Description:
Demonstrates the bug (which is two spurious compile errors)
Filename:
MIME Type:
Creator:
David Hovemeyer
Created:
2004-09-16 14:21:43 EDT
Size:
937 bytes
patch
obsolete
>package edu.umd.cs.daveho; > >interface Vertex<ActualVertexType> > extends Comparable<ActualVertexType> >{ } > >interface Edge > < > ActualEdgeType, > VertexType extends Vertex<VertexType> > > > extends Comparable<ActualEdgeType> >{ } > >class AbstractEdge > < > ActualEdgeType extends AbstractEdge<ActualEdgeType, VertexType>, > VertexType extends AbstractVertex<ActualEdgeType, VertexType> > > > implements Edge<ActualEdgeType, VertexType> >{ > private int id; > > public int compareTo(ActualEdgeType other) { > // Error: "The field other.id is not visible" > return id - other.id; > } >} > >class AbstractVertex > < > EdgeType extends AbstractEdge<EdgeType, ActualVertexType>, > ActualVertexType extends AbstractVertex<EdgeType, ActualVertexType> > > implements Vertex<ActualVertexType> >{ > private int id; > > public int compareTo(ActualVertexType other) { > // Error: "The field other.id is not visible" > return id - other.id; > } >} > >public class VisibilityBug { >}
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 74096
: 14579