rpau / javalang-compiler

Java compiler elements (symbol and type tables) to perform code semantic analysis
GNU Lesser General Public License v3.0
10 stars 4 forks source link

Bug on an specific method call ressolution #10

Closed rpau closed 8 years ago

rpau commented 8 years ago
  1. java.lang.Exception: Ops! The method call intercept(Notifiable.class.cast(serviceModule), serviceInterface) is not resolved. The scope is [empty] , and the args are : [ java.lang.Object, java.lang.Class]

    private final List notifiables = Lists.newArrayList(); ... private PixelInterface intercept(PixelInterface serviceModule, Class serviceInterface) { ... private Notifiable intercept(Notifiable serviceModule, Class<? extends Notifiable> serviceInterface) {

    private void handleRegisterInterface(PixelInterface serviceModule, Class serviceInterface, MethodProfileBlock mprof) ... notifiables.add(intercept(Notifiable.class.cast(serviceModule), serviceInterface));

rpau commented 8 years ago

I have created a test for it and works. It was fixed in https://github.com/rpau/javalang-compiler/issues/15