Reflect compiler not generating default builder class.
See original GitHub issueBy default, dagger-compiler generates a default Builder
class.
With setup such as this:
interface Host {
fun myDependency(): MyDependency
}
@Component(dependencies = [Host::class])
interface MyFeatureComponent {
fun feature(): MyFeature
}
there will be a generated method
DaggerMyFeatureComponent.builder().dependencies(myDependencies).build()
Issue Analytics
- State:
- Created 4 years ago
- Comments:6 (3 by maintainers)
Top Results From Across the Web
Java: newInstance of class that has no default constructor
Call Class.getConstructor() and then Constructor.newInstance() passing in the appropriate arguments. Sample code: import java.lang.reflect.
Read more >Issues with Builder.Default on jdk9 #1547 - GitHub
It seems like there's an issue with Builder.Default on jdk9. These examples compile fine: @Builder class SomeClassWithLombokBuilder ...
Read more >Why Default or No Argument Constructor is Important in Java ...
Almost all Java developers know that compiler adds a default constructor or better known as a no-argument constructor in every Java class, but...
Read more >Protocol Buffer Basics: Java - Google Developers
The message classes generated by the protocol buffer compiler are all immutable. Once a message object is constructed, it cannot be modified, just...
Read more >Java Reflection Example Tutorial - DigitalOcean
//because ConcreteClass is not available at compile time concreteClass = Class.forName("com.journaldev.reflection.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
We declared @Component.Factory interface to workaround.
On Wed, Aug 14, 2019, 4:59 PM Rohan Dhruva notifications@github.com wrote:
We have a bunch of ignored functional tests for the same reason: