-
Notifications
You must be signed in to change notification settings - Fork 170
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add feature flag to stop defaulting null datetime filter args to current time #1067
Conversation
.getActivationStrategy(FIXED_DATE_TIME_FILTER_NULL_ARG); | ||
|
||
if (feat.isActive()) { | ||
var = ((DateTimeFeatureActivationStrategy) feat).getActivateAt(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These are not safe casts
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In general, true, but for this particular feature it will be.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If the feature-flag is changed to FeatureStrategies.ACTIVE
, this will blow up at runtime
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes. But for compatibility reasons, this has to return a valid date. So it's either a casting exception or some other exception.
@@ -41,7 +42,7 @@ public void testSafeStringCanBeEscaped() { | |||
.isInstanceOf(SafeString.class); | |||
} | |||
|
|||
@Test | |||
@Ignore |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
sometimes this is not faster when building.
This is like #1065, but uses the new feature flags instead of adding to JInjavaConfig.
#1066 should be merged first.