It seems that the union types do not get optimally generated when passed as parameters to methods and one of the union types is a primitive value. Consider the type
will optimize in GWT2.x to something like a.addEventListener(b,c,($g(),d?true:false)) where g$ is the Boolean.<clinit>() call. which is of course less optimal than a.addEventListener(b,c,d).
A possible solution may be to add @DonNotAutobox to the union parameter although this solution has yet to be investigated.
It seems that the union types do not get optimally generated when passed as parameters to methods and one of the union types is a primitive value. Consider the type
This will generate
This means that code such as
will optimize in GWT2.x to something like
a.addEventListener(b,c,($g(),d?true:false))
whereg$
is theBoolean.<clinit>()
call. which is of course less optimal thana.addEventListener(b,c,d)
.A possible solution may be to add
@DonNotAutobox
to the union parameter although this solution has yet to be investigated.