Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Should not compile successfully when there are multi provides in module-info for the same spi. #173

Open
Meodinger opened this issue Apr 19, 2022 · 1 comment

Comments

@Meodinger
Copy link

To reproduce the issue, just use <moduleInfoSource> or <moduleInfoFile> for input, and provide impls for the same SPI twice like

module test {
    provides some.module.spi with test.impl.provider1;
    provides some.module.spi with test.impl.provider2;

    // The correct format is
    // provides some.module.spi with 
    //         test.impl.provider1,
    //         test.impl.provider2;
}

This module-info file should not be compiled successfully but it does.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants