Spacebars are missed in ServiceDependence.toString()
Alan Bateman
Alan.Bateman at oracle.com
Wed Feb 15 12:05:11 PST 2012
On 15/02/2012 19:59, Alexey Fedorov wrote:
> Hi all,
>
> I am playing with Jigsaw and found the following small bug: method
> ServiceDependence.toString() contains modifier without any spacebars
> between them.
>
> Set<Dependence.Modifier> modifiers = new
> HashSet<>(Arrays.asList(OPTIONAL, PUBLIC));
> ServiceDependence sd = new ServiceDependence(modifiers, "my.service");
>
> sd.toString returns:
>
>> requires serviceoptionalpublic my.service
>
> but expected something like:
>
>> requires service optional public my.service
>
> Seems like small bug :)
I noticed this too and it's fixed in the services implementation [1],
just not pushed yet.
-Alan.
[1] http://cr.openjdk.java.net/~alanb/jigsaw-services/webrev/
More information about the jigsaw-dev
mailing list