Skip to content

nested interfaces do not get wired correctly and cause a javac compile error #922

@mechite

Description

@mechite

From testing in Discord...
Compilation fails due to package-private accessibility

...given an example from our use-case like such (note the package-private):

@Dao // Datastax Cassandra Driver - a Data Access Object
interface SomeDao {


    // some code here
    @Select
    User findById(String id);


    // this Mapper from Datastax is for creating instances of SomeDao
    @Mapper
    interface SomeMapper {
        
        @DaoFactory
        SomeDao someDao(@DaoKeyspace String keyspace);
    }



    // and then... this Factory from Avaje... is for
    //                   creating instances of SomeMapper....
    //                   which makes SomeDao instances...
    @Factory 
    final class SomeMapperFactory {
        
        @Bean
        SomeMapper mapper(CqlSession session) {

            // DataStax Cassandra Driver - it is generating a builder for the @Mapper

            return new SomeDao_SomeMapperBuilder(session).build();
        }
    }
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions