-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Breaking change in release 7.2.2 #8680
Comments
@ReubenBond would you like me to prepare a PR with the fix? |
You're right, this is unintended. I've got a PR ready: #8681 |
That's great! On an unrelated note, while looking at the source code I've noticed the below:
Shouldn't the last line be:
I know that at the moment |
Great catch, I've updated the PR |
Awesome! Have a lovely weekend!
…On Fri, 20 Oct 2023, 20:47 Reuben Bond, ***@***.***> wrote:
Great catch, I've updated the PR
—
Reply to this email directly, view it on GitHub
<#8680 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AANRND5TMWDHQR7OSIRN6XLYALIMDAVCNFSM6AAAAAA6JPKQ6WVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTONZTGMYDSNZWGE>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
I believe there is an unexpected breaking change introduced in release 7.2.2 through this PR:
#8596
Code that uses
CollectionAgeLimitAttribute
and sets one of the fields will fail to compile.The above code will compile in Orleans 7.2.1, but in 7.2.2. will cause the following compile-time error:
Error CS0617 'Days' is not a valid named attribute argument. Named attribute arguments must be fields which are not readonly, static, or const, or read-write properties which are public and not static.
This is due to the change of property setters from
set
toinit
, which prohibits from using them in atribute declarations.I suspect this in an unintented change, as it makes fields like
AlwaysActive
,Days
,Hours
,Minutes
unusable.I recommend changing properties from
init
back toset
.The text was updated successfully, but these errors were encountered: