8182482: Module System spec updates
Hamlin Li
huaming.li at oracle.com
Wed Jun 21 06:10:14 UTC 2017
On 2017/6/21 3:51, Rony G. Flatscher wrote:
> Maybe a few little things:
>
> * in the Errors section, reason # 4 states:
>
> The service provider class file has more than one public static no-args method named
> "provider".
>
> There could be no more than one public static no-args method named "provider" in a class file,
> so this error reason should not be possible?
>
Hi Rony,
It's possible to have 2 public static no-args method "provider" in a
service provider *class file*, JVM spec allows it, as method return type
is also part of method descriptor.
And I still have questions:
Why need to have this restriction in java API doc? Will there be
corresponding update in JVM spec? When will this restriction be
verified, at linking time?
Thank you
-Hamlin
More information about the jigsaw-dev
mailing list