Skip to content

Akka.Remote generated types for Protobuf have no namespace and collide with framework types #2443

@julienadam

Description

@julienadam

In src/core/Akka.Remote/Proto/Wireformats.cs, types are generated without a namespace.

Among them is CommandType which has the same name as System.Data.CommandType. This causes build issues like this :

using System.Data;
class Foo
{
    CommandType t = CommandType.StoredProcedure; // <-- Doesn't compile
}

Generated types should be in a namespace to avoid these name collisions. It shouldn't affect serialization, unless full type names are also serialized and / or used for serialization.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions