Skip to content

Global context method names collision (GlobalContextMethodCollision8312)

Type Scope Severity Activated
by default
Minutes
to fix
Tags
Error BSL
OS
Blocker Yes 10 error
unpredictable

Description

The platform version 8.3.12 implements new methods of the global context, which may coincide with the configuration functions of the application solution.

Russian variant English variant
ПроверитьБит CheckBit
ПроверитьПоБитовойМаске CheckByBitMask
УстановитьБит SetBit
ПобитовоеИ BitwiseAnd
ПобитовоеИли BitwiseOr
ПобитовоеНе BitwiseNot
ПобитовоеИНе BitwiseAndNot
ПобитовоеИсключительноеИли BitwiseXor
ПобитовыйСдвигВлево BitwiseShiftLeft
ПобитовыйСдвигВправо BitwiseShiftRight

The configuration functions must either be renamed or deleted, replacing the call to them with the methods of the global context.

Examples

Sources

Snippets

Diagnostic ignorance in code

// BSLLS:GlobalContextMethodCollision8312-off
// BSLLS:GlobalContextMethodCollision8312-on

Parameter for config

"GlobalContextMethodCollision8312": false