sObject offline symbols not loaded when there is an inner class with the same name

Issue #999 resolved
Piotr Kożuchowski created an issue

Hi Scott,

I've noticed that on one of my projects, offline symbols are not generated for EmailTemplate sObject at all (It's not present in OfflineSymbolTable.zip).

I've determined that it happens because there is a name conflict with one of my apex class - namely, I have subclass which is named EmailTemplate.

I've managed to reproduce this issue on my sandbox environment by creating following class and regenerating offline symbole table.

public with sharing class PardotObjects {
    public class EmailTemplate{

    }
}

EmailTemplate sObject was available prior to that and disappeared after I deployed this code.

I've also tested that if I add other subclasses, which names cover with sObjects - the symbols will not be generated as well. Screenshot_1.png

Kind Regards, Piotr

Comments (4)

  1. Scott Wells repo owner

    Thanks for clarifying. I think this now falls in with a few other opened issues where a type name is ambiguous. Hopefully the same fix will address them all. I'll take a look in the next couple of days.

  2. Log in to comment