Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Sign in
  • T titan.core
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Locked Files
  • Issues 114
    • Issues 114
    • List
    • Boards
    • Service Desk
    • Milestones
    • Iterations
    • Requirements
  • Merge requests 0
    • Merge requests 0
  • Deployments
    • Deployments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • Code review
    • Insights
    • Issue
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar
  • Eclipse ProjectsEclipse Projects
  • Eclipse Titan
  • titan.core
  • Merge requests
  • !232

OOP: fixed name clash in the constructor and improved previous modifications to work with subreferences (issue #584)

  • Review changes

  • Download
  • Email patches
  • Plain diff
Merged Botond Baranyi requested to merge bbaranyi/titan.core:master into master Mar 03, 2022
  • Overview 0
  • Commits 2
  • Changes 9

Fixed name clash between constructor parameters and class member initializers (since the initial values of class members are assigned in the constructor before the actual constructor body). 'this.' prefixes have been added to the left-hand-side of class member initializers and to all references to class members in the initial values.

The previously implemented wrapper classes for default parameters, their use in the super-constructor call and the new error messages about using class member references in invalid places now all function properly, if the class member reference in question has field names and/or array indexes.

Class member initializers containing forward references (i.e. references to other members that are declared later) now work properly, even if the forward references are in expressions.

Constructors can no longer have 'out' or 'inout' parameters.

Signed-off-by: Botond Baranyi botond.baranyi@ericsson.com

Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: master

Copyright © Eclipse Foundation, Inc. All Rights Reserved.     Privacy Policy | Terms of Use | Copyright Agent