Inner class with same name being resolved incorrectly

Issue #224 resolved
Scott Wells repo owner created an issue

In cases like the folllowing:

public with sharing class BaseClass
{
    public with sharing virtual class InnerClass
    {

    }
}

public with sharing class DerivedClass
{
    public with sharing class InnerClass extends BaseClass.InnerClass
    {

    }
}

The base class reference in the extends clause is resolving improperly to DerivedClass.InnerClass. This can result in StackOverflowErrors during indexing from ApexClassDeclarationMixin.getAllImplementedTypeDeclarations().

Comments (2)

  1. Log in to comment