tsantalis / DPD4Eclipse

4 stars 1 forks source link

Handle Lambda Expressions #4

Closed dmazinanian closed 7 years ago

dmazinanian commented 7 years ago

The problem was initially found in Apache Geode.

Steps to reproduce:

  1. Import the project using the Gradle plugin (Eclipse Buildship) (Import -> Gradle -> Existing Gradle Project).
  2. Run DPD on the geode-lucene project.
  3. Under the Template Method, look for Instance [lambda]. The Abstract Class is org.apache.geode.cache.lucene.internal.AbstractPartitionedRepositoryManager. The call to the abstract method omputeRepository(Integer, LuceneSerializer, LuceneIndexImpl, PartitionedRegion, IndexRepository) is inside the lambda, implemented in the method computeRepository(Integer):IndexRepository.

The NPE happens because there is no corresponding Icon. Locating the call to the abstract method is not happening as well.

tsantalis commented 7 years ago

Fixed in commit ba3a84ea51bdcef2fccf0df420146114465bffca