You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Gilles Sadowski (Jira)" <ji...@apache.org> on 2019/09/28 01:07:00 UTC

[jira] [Created] (GEOMETRY-64) Reference to subclass' field

Gilles Sadowski created GEOMETRY-64:
---------------------------------------

             Summary: Reference to subclass' field
                 Key: GEOMETRY-64
                 URL: https://issues.apache.org/jira/browse/GEOMETRY-64
             Project: Apache Commons Geometry
          Issue Type: Bug
          Components: Euclidean 1D, Euclidean 2D, Euclidean 3D
            Reporter: Gilles Sadowski


During its initialization, class {{Vector1D}} accesses fields in subclass {{Unit}} which might not have been initialized yet.
Same issue for {{Vector2D}} and {{Vector3D}}.

The named constants for the unit vectors should only be defined in the {{Unit}} class.

Bug reported by [SonarQube|https://sonarcloud.io/dashboard?id=commons-geometry].



--
This message was sent by Atlassian Jira
(v8.3.4#803005)