sergejsha/magnet

Processor fails to generate Factory when custom scope name is used

sergejsha opened this issue · 0 comments

package app;

import magnet.Instance;
import magnet.Scope;

@Instance(type = UnderTest.class)
public class UnderTest {
    public UnderTest(Scope parentScope) {
    }
}

generates Factory, which fails with the following error message:

java.lang.AssertionError: Compilation produced the following errors:
/SOURCE_OUTPUT/app/UnderTestMagnetFactory.java:11: error: cannot find symbol
    return new UnderTest(parentScope);
                         ^
  symbol:   variable parentScope
  location: class app.UnderTestMagnetFactory

Version: 3.1-beta1