Class not found

objectscriptQuality release 
1.3.0
Id 
OS0077
Rule type 
Bug
Severity 

Critical

Critical
SQALE characteristic 
  • Reliability
    • Resource
Tags 
runtime-failure
Remediation function 
Constant/issue
Remediation cost 
3h

The class must exists.

Noncompliant Code Example

Following code will raise a "CLASS NOT FOUND error" message on runtime for any call to the foo class method.

Class Sample.Foobar
{
    ClassMethod foo()
    {
        do ##class(Violated).bar() // CLASS NOT FOUND error
    }
}