NetworkManager Stub Error



I have created the stubs attached from the Network Manager Introspection data. If I add the same to a Java project then it shows the error "The package org.freedesktop.NetworkManager.Device collides with a type". It is true that the package name matches with classnames in the stubs. I can change the package name to remove the errors. But if I change either a package name or a class name, I will not be able to communicate with the Network Manager. Because the Network Manager expects the particular folder structure (see attachment) in the java project.

If I change the package name in the stubs then I will not be able to receive the signals. If I change the class name in the stubs then I will get a compile time error. To reproduce this just unzip the attachment, add it to a Java Project and try to use the stubs.

Please help me to resolve this problem.

Thanks,
Jos Collin

::DISCLAIMER::
-----------------------------------------------------------------------------------------------------------------------

The contents of this e-mail and any attachment(s) are confidential and intended for the named recipient(s) only.
It shall not attach any liability on the originator or HCL or its affiliates. Any views or opinions presented in
this email are solely those of the author and may not necessarily reflect the opinions of HCL or its affiliates.
Any form of reproduction, dissemination, copying, disclosure, modification, distribution and / or publication of
this message without the prior written consent of the author of this e-mail is strictly prohibited. If you have
received this email in error please delete it and notify the sender immediately. Before opening any mail and
attachments please check them for viruses and defect.

-----------------------------------------------------------------------------------------------------------------------

DISCLAIMER:
-----------------------------------------------------------------------------------------------------------------------

The contents of this e-mail and any attachment(s) are confidential and intended for the named recipient(s) only. 
It shall not attach any liability on the originator or HCL or its affiliates. Any views or opinions presented in 
this email are solely those of the author and may not necessarily reflect the opinions of HCL or its affiliates. 
Any form of reproduction, dissemination, copying, disclosure, modification, distribution and / or publication of 
this message without the prior written consent of the author of this e-mail is strictly prohibited. If you have 
received this email in error please delete it and notify the sender immediately. Before opening any mail and 
attachments please check them for viruses and defect.

-----------------------------------------------------------------------------------------------------------------------

Attachment: stubs.tar
Description: stubs.tar



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]