-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[BREAKING] Drop conflicting FiniteDuration implicit conversions, close …
…#4195 Motivation: In 3.7, we introduced `Int => Expression[FiniteDuration]` implicit conversions. In some cases, for example `queryParam("foo", 1)`, we want the existing `T => Expression[T]` implicit conversion to trigger, but the new implicit seems to have higher priority, probably because it's more precise. Modification: * drop the new implicit Expression[FiniteDuration] conversions * add a new function to Expression implicit conversion * make sure that value to Expression implicit conversion can't be applied on Strings (we want to EL conversion to trigger) * the Scala compiler doesn't properly figure out implicit conversions when using overloading. I couldn't figure out the rules here?! Use more overloads to remove some of the needs of implicit conversions and convert manually instead. Result: `queryParam("foo", 1)`, properly generate an `Expression[Int]` and not an `Expression[FiniteDuration]`.
- Loading branch information
Showing
10 changed files
with
346 additions
and
356 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.