-
Notifications
You must be signed in to change notification settings - Fork 1k
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
[WARNING] CS0628: new protected member declared in sealed type
#6626
Conversation
@@ -361,7 +361,7 @@ public EndpointAssociationException(string message) | |||
/// </summary> | |||
/// <param name="info">The <see cref="SerializationInfo"/> that holds the serialized object data about the exception being thrown.</param> | |||
/// <param name="context">The <see cref="StreamingContext"/> that contains contextual information about the source or destination.</param> | |||
protected EndpointAssociationException(SerializationInfo info, StreamingContext context) | |||
EndpointAssociationException(SerializationInfo info, StreamingContext context) |
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.
I have removed that protected
@Aaronontheweb
@@ -386,7 +386,7 @@ public OversizedPayloadException(string message) | |||
/// </summary> | |||
/// <param name="info">The <see cref="SerializationInfo"/> that holds the serialized object data about the exception being thrown.</param> | |||
/// <param name="context">The <see cref="StreamingContext"/> that contains contextual information about the source or destination.</param> | |||
protected OversizedPayloadException(SerializationInfo info, StreamingContext context) | |||
OversizedPayloadException(SerializationInfo info, StreamingContext context) |
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.
I have removed that protected
@Aaronontheweb
@@ -347,7 +347,7 @@ public AbruptStageTerminationException(GraphStageLogic logic) | |||
/// </summary> | |||
/// <param name="info">The <see cref="SerializationInfo" /> that holds the serialized object data about the exception being thrown.</param> | |||
/// <param name="context">The <see cref="StreamingContext" /> that contains contextual information about the source or destination.</param> | |||
protected AbruptStageTerminationException(SerializationInfo info, StreamingContext context) : base(info, context) { } | |||
AbruptStageTerminationException(SerializationInfo info, StreamingContext context) : base(info, context) { } |
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.
I have removed that protected
@Aaronontheweb
src/core/Akka.Streams/Dsl/Graph.cs
Outdated
@@ -1219,7 +1219,7 @@ public PartitionOutOfBoundsException(string message) : base(message) | |||
/// </summary> | |||
/// <param name="info">The <see cref="SerializationInfo" /> that holds the serialized object data about the exception being thrown.</param> | |||
/// <param name="context">The <see cref="StreamingContext" /> that contains contextual information about the source or destination.</param> | |||
protected PartitionOutOfBoundsException(SerializationInfo info, StreamingContext context) : base(info, context) { } | |||
PartitionOutOfBoundsException(SerializationInfo info, StreamingContext context) : base(info, context) { } |
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.
I have removed that protected
@Aaronontheweb
src/core/Akka.Streams/Dsl/Tcp.cs
Outdated
@@ -309,7 +309,7 @@ public TcpIdleTimeoutException(string message, TimeSpan duration) : base(message | |||
/// </summary> | |||
/// <param name="info">The <see cref="SerializationInfo" /> that holds the serialized object data about the exception being thrown.</param> | |||
/// <param name="context">The <see cref="StreamingContext" /> that contains contextual information about the source or destination.</param> | |||
protected TcpIdleTimeoutException(SerializationInfo info, StreamingContext context) : base(info, context) { } | |||
TcpIdleTimeoutException(SerializationInfo info, StreamingContext context) : base(info, context) { } |
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.
I have removed that protected
@Aaronontheweb
@@ -26,7 +26,7 @@ public sealed class SchedulerException : AkkaException | |||
/// </summary> | |||
/// <param name="info">The <see cref="SerializationInfo" /> that holds the serialized object data about the exception being thrown.</param> | |||
/// <param name="context">The <see cref="StreamingContext" /> that contains contextual information about the source or destination.</param> | |||
protected SchedulerException(SerializationInfo info, StreamingContext context) | |||
SchedulerException(SerializationInfo info, StreamingContext context) |
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.
I have removed that protected
@Aaronontheweb
@@ -1804,7 +1803,6 @@ namespace Akka.Streams.Dsl | |||
public sealed class PartitionOutOfBoundsException : System.Exception | |||
{ | |||
public PartitionOutOfBoundsException(string message) { } | |||
protected PartitionOutOfBoundsException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) { } |
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.
removed @Aaronontheweb
@@ -12,7 +12,6 @@ namespace Akka.Streams | |||
public sealed class AbruptStageTerminationException : System.Exception | |||
{ | |||
public AbruptStageTerminationException(Akka.Streams.Stage.GraphStageLogic logic) { } | |||
protected AbruptStageTerminationException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) { } |
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.
removed @Aaronontheweb
@@ -1614,7 +1614,6 @@ namespace Akka.Actor | |||
public sealed class SchedulerException : Akka.Actor.AkkaException | |||
{ | |||
public SchedulerException(string message) { } | |||
protected SchedulerException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) { } |
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.
removed @Aaronontheweb
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.
I think that needs to be made public, probably
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.
@Aaronontheweb changes
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.
Need the serialization constructors back, so make them public
instead
@@ -1614,7 +1614,6 @@ namespace Akka.Actor | |||
public sealed class SchedulerException : Akka.Actor.AkkaException | |||
{ | |||
public SchedulerException(string message) { } | |||
protected SchedulerException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) { } |
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.
I think that needs to be made public, probably
@@ -1612,7 +1612,6 @@ namespace Akka.Actor | |||
public sealed class SchedulerException : Akka.Actor.AkkaException | |||
{ | |||
public SchedulerException(string message) { } | |||
protected SchedulerException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) { } |
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.
Make all of these public
Changes to |
Checklist
For significant changes, please ensure that the following have been completed (delete if not relevant):