Inspection Issue: SObject internal field named same as SObject.
Issue #867
resolved
Working with some legacy stuff here, we have an Custom Setting called Valskip__c and it has an boolean field called Valskip__c (boolean). In the code we are creating a Valskip__c object with:
vs = new Valskip__c(setupownerid = UserInfo.getUserId(), **Valskip__c = validationSkip**);
}
On the last part where it's assigning Valskip__c = validationSkip (a boolean value) , Illuminated cloud is giving an inspection error:
'Illegal assignment from Boolean to Valskip__c'
Comments (4)
-
repo owner -
repo owner Yup, easily reproduced. That field reference is resolving to the default constructor for the custom setting instead of the field declaration. I'll try to fix it for tomorrow's build.
-
repo owner Easily fixed. I'll deliver the fix tomorrow.
-
repo owner - changed status to resolved
Delivered in 1.8.2.0 (references only) and 2.0.1.1 (references and inspection).
- Log in to comment
Thanks for filing and for the example. Should hopefully be easy to reproduce and (even more hopefully!) fix.