I have an issue where only some of my global variables in my managed package are visible. Ex: I can access bool1 and bool2 in developer console and in non managed classes but bool3 and bool4 give a not visible error when I try to reference them. Through the developer console code complete I am able to auto complete and see bool3 and bool4 but I cannot execute the code nor save the non managed class. My class from the managed package:
global with sharing class MyClass
{
global static Boolean bool1 = false;
global static Boolean bool2 = false;
global static Boolean bool3 = false;
global static Boolean bool4 = false;
}
Code I'm executing
~logic here
NAMESPACE.MyClass.bool3 = true;
~logic here
NAMESPACE.MyClass.bool3 = false;
~logic here
The above is how my class and anonymous code block roughly works. I'm not sure what I could be missing here since its possible to reference about half of the global variables in the global class in the managed package from non managed classes and dev console. I don't think its a permission issue since I'm able to access the class and reference some of the variables but I'm not entirely sure.