-
-
Notifications
You must be signed in to change notification settings - Fork 74
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
CreateInterface for firewalld Creates Class / Package Name clash #35
Comments
Could you provide the introspection xml generated by DBus? I don't use Fedora/firewalld and I've started a re-write of the CreateInterface tool and some more test data would be helpful. |
Attached. If it helps I'm using firewalld on Mint for this. |
I've identified a problem I introduced. Because the Structs can now be in a package, the import for that package needs to be added to the generated interface class. For some interfaces/paths, the Struct definition has not yet been created, so the 'import xxx' statement cannot be written. I think that means that code generation needs to be a 2 pass process, but I am still trying to think of alternatives. |
Fix offered in #36 |
I have added a new branch with a completely rewritten version of the interface creation tool. The branch name is 'interface-tool', the class you have to run is org.freedesktop.dbus.utils.generator.InterfaceCodeGenerator Please note that this tool is not done yet. It still lacks support for multi-value return and may have some serious bugs. If you find bugs and want to provide a fix for that, you are always welcome. |
The new InterfaceCodeGenerator is now part of the latest release. The old tool is still available, but deprecated. |
Running CreateInterface to create code for the object path '/org/fedoraproject/FirewallD1` creates
a Java class org.fedoraproject.FirewallD1.java whose name is the same as a java package, so the code
does not compile.
Also: the imports for DBusInterface and DBusSignal need to reflect the new package locations for these.
The text was updated successfully, but these errors were encountered: