Skip to content

com.google.protobuf.GeneratedMessageV3.isStringEmpty should be public #9236

@ochinchina

Description

@ochinchina

Version: v3.19.1
Language: Java
OS: Windows 10

When compiling the protoc 3.19.1 generated java source codes from a .proto file, following error is raised:

 error: cannot find symbol
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(appId_)) {
                                               ^
  symbol:   method isStringEmpty(Object)
  location: class GeneratedMessageV3

After checking the source code of the java class com.google.protobuf.GeneratedMessageV3 and found the method isStringEmpty is defined as protected instead of public.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions