Skip to content
This repository was archived by the owner on Oct 16, 2024. It is now read-only.

Generic method in supertype not typed correctly in generated code #112

Closed
alicederyn opened this issue Mar 11, 2016 · 1 comment
Closed

Comments

@alicederyn
Copy link
Collaborator

interface Foo<T> {
  T getBar();
}

@FreeBuilder
interface StringFoo extends Foo<String> {
  class Builder extends StringFoo_Builder {}
}

FreeBuilder generates invalid code for Main_StringFoo_Builder that references undefined type T instead of String.

Workaround: Redeclare the method in the subclass.

@alicederyn
Copy link
Collaborator Author

I can no longer reproduce this issue, even using the version of FreeBuilder that used to exhibit it, and I suspect it was caused by a bug in the version of Eclipse available at the time.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant