HabchiSarra / SmellDetector

GNU Affero General Public License v3.0
3 stars 1 forks source link

[playmusicexporter] Could not find declaration for variable while building model #18

Closed aveuiller closed 5 years ago

aveuiller commented 5 years ago

We have an issue while building the model of the project playmusicexporter/playmusicexporter (commit: 51c1fc4d262ac47e6bac9c6982a450878da8d0e0):

2019-07-11 20:47:19 ERROR  JDTTreeBuilder:203 - Could not find declaration for variable pager at (/Users/think/Downloads/codeSmell/Sniffer/CommitLooper/repositories/Exporter/playmusicexporter/src/main/java/re/jcg/playmusicexporter/activities/Intro.java:158)
    2019-07-11 20:47:19 ERROR  JDTTreeBuilder:203 - Could not find declaration for variable pager at (/Users/think/Downloads/codeSmell/Sniffer/CommitLooper/repositories/Exporter/playmusicexporter/src/main/java/re/jcg/playmusicexporter/activities/Intro.java:172)
    2019-07-11 20:47:19 ERROR  JDTTreeBuilder:203 - Could not find declaration for variable pager at (/Users/think/Downloads/codeSmell/Sniffer/CommitLooper/repositories/Exporter/playmusicexporter/src/main/java/re/jcg/playmusicexporter/activities/Intro.java:172)

It seems to be linked to the fact that the attribute pager is defined in a superclass which is declared in a library. And we do not include libraries in the checks.

Relates to https://github.com/HabchiSarra/Sniffer/issues/5

aveuiller commented 5 years ago

This issue is solved using spoon v7.4.0