Skip to content

Commit a63cd20

Browse files
committed
COH-30829 Deprecate classes that are using BinaryFormatter
[git-p4: depot-paths = "//dev/main.net/": change = 111155]
1 parent dc1d22e commit a63cd20

File tree

3 files changed

+20
-0
lines changed

3 files changed

+20
-0
lines changed

src/Coherence/IO/BinarySerializer.cs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44
* Licensed under the Universal Permissive License v 1.0 as shown at
55
* http://oss.oracle.com/licenses/upl.
66
*/
7+
8+
using System;
79
using System.IO;
810
using System.Runtime.Serialization.Formatters.Binary;
911

@@ -13,8 +15,14 @@ namespace Tangosol.IO
1315
/// <see cref="ISerializer"/> implementation that uses .NET binary
1416
/// serializer.
1517
/// </summary>
18+
/// <remarks>
19+
/// As of 14.1.2.0, this class is deprecated as it relies on
20+
/// <see cref="BinaryFormatter"/>, which is scheduled for removal
21+
/// in .NET 9.
22+
/// </remarks>
1623
/// <author>Aleksandar Seovic 2009.06.22</author>
1724
/// <since>Coherence 3.5</since>
25+
[Obsolete("since Coherence 14.1.2.0")]
1826
public class BinarySerializer : ISerializer
1927
{
2028
#region Implementation of ISerializer

src/Coherence/IO/OptimizedBinarySerializer.cs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,15 @@ namespace Tangosol.IO
1515
/// of primitive types and falls back to .NET BinaryFormatter for
1616
/// custom types.
1717
/// </summary>
18+
/// <remarks>
19+
/// <para>
20+
/// As of 14.1.2.0, this class is deprecated as it relies on a
21+
/// deprecated <see cref="BinarySerializer"/>
22+
/// </para>
23+
/// </remarks>
1824
/// <author>Aleksandar Seovic 2010.03.17</author>
1925
/// <since>Coherence 3.6</since>
26+
[Obsolete("since Coherence 14.1.2.0")]
2027
public class OptimizedBinarySerializer : ISerializer
2128
{
2229
#region Implementation of ISerializer

src/Coherence/IO/Pof/SafeConfigurablePofContext.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,10 +42,15 @@ namespace Tangosol.IO.Pof
4242
/// For user types that have been explicitly configured, this IPofContext
4343
/// behaves identically to the ConfigurablePofContext.
4444
/// </para>
45+
/// <para>
46+
/// As of 14.1.2.0, this class is deprecated as it relies on a
47+
/// deprecated <see cref="BinarySerializer"/>
48+
/// </para>
4549
/// </remarks>
4650
/// <author>Jason Howes 2007.05.03</author>
4751
/// <author>Aleksandar Seovic (.NET) 2009.09.25</author>
4852
/// <since> Coherence 3.6</since>
53+
[Obsolete("since Coherence 14.1.2.0")]
4954
public class SafeConfigurablePofContext : ConfigurablePofContext
5055
{
5156
#region Constructors

0 commit comments

Comments
 (0)