Skip to content

Duplicated warning message on unsigned integer #226

@alexander-yevsyukov

Description

@alexander-yevsyukov

I've got two same warning messages when building CoreJava. Here's the console output:

> Task :server:launchTestFixturesProtoData
w: file:///Users/sanders/Projects/Spine/core-java/server/src/testFixtures/proto/spine/test/tuple/quintet.proto:53:5: Unsigned integer types are not supported in Java. The Protobuf compiler uses signed integers to represent unsigned types in Java (https://protobuf.dev/programming-guides/proto3/#scalar). Operations on unsigned values rely on static utility methods from `java.lang.Integer` and `java.lang.Long` classes (https://www.baeldung.com/java-unsigned-arithmetic#the-unsigned-integer-api). Be cautious when dealing with unsigned values outside of these methods, as Java treats all primitive integers as signed.
w: file:///Users/sanders/Projects/Spine/core-java/server/src/testFixtures/proto/spine/test/tuple/quintet.proto:53:5: Unsigned integer types are not supported in Java. The Protobuf compiler uses signed integers to represent unsigned types in Java (https://protobuf.dev/programming-guides/proto3/#scalar). Operations on unsigned values rely on static utility methods from `java.lang.Integer` and `java.lang.Long` classes (https://www.baeldung.com/java-unsigned-arithmetic#the-unsigned-integer-api). Be cautious when dealing with unsigned values outside of these methods, as Java treats all primitive integers as signed.

It has the same warning for the same location in the quintent.proto file emitted twice. The user should have it reported only once.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions