Skip to content

Unable to use AutoDelegate to delegate FileSystemProvider #50

@stevenschlansker

Description

@stevenschlansker

I am trying to make a delegate of java.nio.file.spi.FileSystemProvider.

I write out:

@AutoDelegate(FileSystemProvider.class)
public class MyFileSystemProvider extends AutoDelegate_MyFileSystemProvider {
    public MyFileSystemProvider() {
        super(null); // TODO
    }
}

but unfortunately this fails:

java.lang.IllegalStateException: A mismatch between the number of interfaces found on the declaring class that correspond to the delegation targets specified via the AutoDelegate annotation. Are you sure your type implements all of the delegation targets?
    at com.ryandens.delegation.AutoDelegateProcessor.process (AutoDelegateProcessor.java:111)

Normally I would implements the service type directly, but in this case the service type is an abstract class, not an interface.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions