Skip to content

Failed to compile when the java package option conflict with property name #134

@albilaga

Description

@albilaga

we have our proto like this

option java_package = "id.co.xxx.proto.v1";

message Item {
  string id = 1;
  uint64 order_date = 2;
}

this will generate kotlin something like this

return id.co.xxx.proto.v1.Item.Companion.createPartial(
        id = id,
        order_date = order_date,
        unknownFields = unknownFields
      )

and will then throw error Unresolved reference 'co'.. This is only happened in v2.0.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions