You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Oct 16, 2024. It is now read-only.
This might be related to #112, but something similar happens with generic methods inherited from a base type.
@FreeBuilder
abstract class Test extends ForwardingSet<String>
{
static class Builder extends Test_Builder
{
}
@Override
protected abstract Set<String> delegate();
@Override
public boolean add(final String value)
{
return super.add(value);
}
@Override
public boolean addAll(final Collection<? extends String> values)
{
return super.addAll(values);
}
}
Although the generated builder and value type have no compiler errors, the annotation processor generates several errors related to a few of the methods inherited from ForwardingSet:
No implementation found for non-getter method 'public abstract T[] toArray(T[]) '; cannot generate @FreeBuilder implementation Test.java ... line 22 Annotation Problem (Java 6 processor)
addAll and add seem to trigger the issue described in #112, but I can workaround as described in the issue. However, the workaround doesn't seem to do the trick for toArray.
I haven't thoroughly tested other triggering conditions, and I've only tried it using the annotation processing in Eclipse Oxygen (4.7.3a). I'll try it out without Eclipse tomorrow.
The text was updated successfully, but these errors were encountered:
Chalk this up to another Eclipse only issue. Created a very simple case to reproduce this:
TestInterface.java
public interface TestInterface
{
public <T> void doSomething(T[] array);
}
TestBuildable.java
@FreeBuilder
public class TestBuildable implements TestInterface
{
public static class Builder extends TestBuildable_Builder
{
}
@Override
public <T> void doSomething(final T[] array)
{
}
}
This triggers the annotation error when using Eclipse's annotation processing support. Running a Maven build via the command line issues no errors. Easy enough to work around at least.
This might be related to #112, but something similar happens with generic methods inherited from a base type.
Although the generated builder and value type have no compiler errors, the annotation processor generates several errors related to a few of the methods inherited from
ForwardingSet
:addAll
andadd
seem to trigger the issue described in #112, but I can workaround as described in the issue. However, the workaround doesn't seem to do the trick fortoArray
.I haven't thoroughly tested other triggering conditions, and I've only tried it using the annotation processing in Eclipse Oxygen (4.7.3a). I'll try it out without Eclipse tomorrow.
The text was updated successfully, but these errors were encountered: