Skip to content
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

Merged
merged 3 commits into from
Mar 30, 2023
Merged

[WARNING] CS0628: new protected member declared in sealed type #6626

merged 3 commits into from
Mar 30, 2023

Conversation

eaba
Copy link
Contributor

@eaba eaba commented Mar 28, 2023

Checklist

For significant changes, please ensure that the following have been completed (delete if not relevant):

@@ -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)
Copy link
Contributor Author

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)
Copy link
Contributor Author

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) { }
Copy link
Contributor Author

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

@@ -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) { }
Copy link
Contributor Author

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

@@ -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) { }
Copy link
Contributor Author

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)
Copy link
Contributor Author

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) { }
Copy link
Contributor Author

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) { }
Copy link
Contributor Author

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) { }
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

removed @Aaronontheweb

Copy link
Member

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

Copy link
Contributor Author

@eaba eaba left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Aaronontheweb changes

@eaba eaba marked this pull request as ready for review March 28, 2023 13:07
Copy link
Member

@Aaronontheweb Aaronontheweb left a 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) { }
Copy link
Member

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) { }
Copy link
Member

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

@eaba
Copy link
Contributor Author

eaba commented Mar 29, 2023

Changes to public @Aaronontheweb

@Aaronontheweb Aaronontheweb merged commit 9135b85 into akkadotnet:dev Mar 30, 2023
@eaba eaba deleted the protected_sealed_type branch March 30, 2023 17:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants