paulk-asert opened a new pull request, #3154:
URL: https://github.com/apache/groovy/pull/3154

   A property or subscript write to a map stores the value through 
Map.put(Object, Object). A value accepted for the map's value type but not of 
it, such as a GString for String or an Integer for Long, was stored as it was, 
so the map held values its declaration did not promise. Under static type 
checking the compiler now supplies the value type to a putAt that converts the 
value, as a @ClassTag token, in the way the checked withDefault is selected: 
the write is a preemption, so the consent veto keeps the previous behaviour. 
Dynamic code is unchanged.
   
   A @ClassTag overload is now bound only when the call type checks with its 
generics; a call that does not stays as written.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to