-
Notifications
You must be signed in to change notification settings - Fork 107
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
Missing interface exception when only new class implements it #200
Comments
I have tried to reproduce your case. The first jar only contains one class
Can you provide more details about your case? |
Ok. I try to clarify. I've invoked command like this:
test-0.0.1.jar contains org/example/test/App.class: |
… be loaded from old and new classpath if specified separately
Thank you very much for the detailed description. With its help I could reproduce the issue. The last commit resolves the problem that japicmp reports |
Hi,
when I try scan library with old and new classpath set I've got error message:
This happens when class from new jar implements interface that is not present in old classpath (only present in new claaspath) but old jar class equivalent dose not implement any interface at all.
japicmp.compat.CompatibilityChanges line 650 looks like this:
interfaceClass = loadClass(implementedInterface.getFullyQualifiedName(), EnumSet.allOf(Classpath.class));
but probably should be:
interfaceClass = loadClass(implementedInterface.getFullyQualifiedName(), EnumSet.of(Classpath.NEW_CLASSPATH));
Could you fix this?
Cheers,
MJ
The text was updated successfully, but these errors were encountered: