Uploaded image for project: 'Apache Commons Geometry'
  1. Apache Commons Geometry
  2. GEOMETRY-64

Reference to subclass' field

    XMLWordPrintableJSON

    Details

      Description

      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.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                erans Gilles Sadowski
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: