javaparser / javasymbolsolver

*old repository* --> this is now integrated in https://github.com/javaparser/javaparser
Apache License 2.0
290 stars 76 forks source link

JSS#326, part 1: When solving symbols in types, refer back to SymbolSolver for typeclasses and interfaces #332

Closed WimTibackx closed 7 years ago

WimTibackx commented 7 years ago

Relates to #326.

To avoid the original issue that getting the superclass or an interface within the Javassist ctClass context was not always correct, the Javassist*Declarations will only use the ctClass to get the FQN, and use that FQN to refer back to SymbolSolver.

To retain all functionality, SymbolSolver also needed to be able to resolve within JavassistInterfaceDeclarations.

Future PRs will still have to tackle other CtClass::getInterfaces() and CtClass::getSuperClass() usages, as well as reduce code duplication within SymbolSolver::solveSymbolInType and its dependencies.