-
Bug
-
Resolution: Fixed
-
P2
-
9
-
b156
-
Verified
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8174516 | 10 | Jonathan Gibbons | P2 | Resolved | Fixed | b01 |
The spec says:
"It is a compile-time error if more than one provides statement in a module declaration specifies the same service interface. "
If the service implementations of these provides statements are different then compiler does not produce an error.
module m {
provides I with A;
provides I with B;
}
"It is a compile-time error if more than one provides statement in a module declaration specifies the same service interface. "
If the service implementations of these provides statements are different then compiler does not produce an error.
module m {
provides I with A;
provides I with B;
}
- backported by
-
JDK-8174516 Javac doesn't report errors on duplicate provides with different service implementations
- Resolved