Skip to content
This repository has been archived by the owner on Jan 9, 2020. It is now read-only.

nielsbasjes/BugReport-EclipseGenerics

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 

What is this?

This repo is a simplified version of the bug report I got for an other project of mine.

Turns out that this is an error reported by Eclipse. Note that both the commandline javac and IntelliJ IDEA like the code just fine.

So for me this is a bug in Eclipse.

I tested this with

Eclipse IDE for Java Developers
Version: Oxygen.1a Release (4.7.1a)
Build id: 20171005-1200

What goes wrong?

Eclipse gives an error depending on the ORDER of the builder methods that are called. To me it seems like Eclipse is not using the correct return type of the builder methods because they are overridden using a generic construct.

License

I'm putting this under the Eclipse Public License so this code can be used as part of the test suite for Eclipse.

About

Reproduce the problem I have with Eclipse and inheritance of generics.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages