Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
final means "final"
#3
What I have found is that the final/virtual/override creates a chicken and egg scenario with regard to virtuals. Declaring a method final in a class that is final is itself redundant.

My scanner gives the following cyclical violation warnings

virtual method should be override or final...which leads to marking the method as override and re-running the scanner, which then says method should be final, so put both override and final on the declaration and it then complains that final must appear by itself. Trying final by itself complains that method should be override and we are back to the first case and it becomes acyclical problem.

Finally ended up disabling rules A10_3_[1..2]
Reply


Messages In This Thread
final means "final" - by kent.dorfman766 - 14-03-2022, 06:18 PM
RE: final means "final" - by cgpzs - 15-03-2022, 01:57 PM
RE: final means "final" - by kent.dorfman766 - 18-03-2022, 05:01 AM
RE: final means "final" - by cgpzs - 21-03-2022, 10:31 AM
RE: final means "final" - by misra cpp - 22-03-2022, 11:00 AM
RE: final means "final" - by cgpzs - 22-03-2022, 04:03 PM
RE: final means "final" - by misra cpp - 13-05-2022, 01:56 PM
RE: final means "final" - by novelsmith - 23-01-2024, 07:51 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)