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

Reference to subclass' field

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • None
    • None

    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

              Unassigned Unassigned
              erans Gilles Sadowski
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: