Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Callbacks to Inner-classes are skipped in the generated averroes-lib-class.jar #21

Open
akshayutture opened this issue Jul 16, 2021 · 1 comment

Comments

@akshayutture
Copy link

akshayutture commented Jul 16, 2021

Consider the following example

import java.util.*;

public class C{
        public static class B implements Comparable<B>{
                @Override
                public int compareTo(B st){
                        return 0;
                }
        }

        public static void main(String[] args){
                ArrayList<B> arr = new ArrayList<B>();
                arr.add(new B());
                arr.add(new B());
                Collections.sort(arr);
        }
}

When I run Averroes, the call to "compareTo" is missing in the generated averroes-lib-class.jar
I think it is an issue with inner classes because the call to "compareTo" is present when I run a similar example without inner classes.

@karimhamdanali
Copy link
Contributor

noted, and I will add to the list of issues that I will work on for the upcoming 1-2 weeks. Thanks @akshayutture for raising those issues! Much appreciated.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants