Stubs not generated...
Michael Burbidge <[email protected]> Wed, 5 Apr 2006 11:55:58 -0700
| Newsgroups | gmane.comp.java.sun.idl.user |
|---|---|
| Message-ID | <[email protected]> |
I'm trying to generate Java client stubs from a large number of idl
files. For most of them it works fine. For one however it doesn't. I
don't get errors, I just don't get any stub files. The interfaces are
divided into modules. All interfaces are in the module
com::adobe::ids. But then from there they are divided into sub
modules. For example: com::adobe::ids::book. These modules translate
to packages in Java. Here's the idl file that doesn't generate stubs:
#ifndef __ids_Book_idl__
#define __ids_Book_idl__
#include "ids_BaseTypes.idl"
#include "ids_RootObject.idl"
#include "ids_GlobalTypes.idl"
#include "ids_RepaginateOptionEnum.idl"
#include "ids_VariableType.idl"
#include "ids_SaveOptionsEnum.idl"
module com { module adobe { module ids {
module document {
interface ids_Document;
};
module book {
interface ids_BookContent;
};
module book {
interface ids_SynchronizeOption;
};
module print {
interface ids_PrintPreference;
};
}; }; };
module com { module adobe { module ids {
module book {
/**
* A book
*/
interface ids_Book : scripting::ids_RootObject
{
/**
* Get PrintPreferences
* @return Print preferences
*/
print::ids_PrintPreference getPrintPreferences() raises(ids_Exception);
/**
* Get Name
* @return The name of the object
*/
wstring getName() raises(ids_Exception);
/**
* Get FullName
* @return The full path including the name
*/
wstring getFullName() raises(ids_Exception);
/**
* Get FilePath
* @return The file path
*/
wstring getFilePath() raises(ids_Exception);
};
};
}; }; };
#ifdef include_ids_Book
#include "ids_BookInc.idl"
#endif
#endif
I know it's big and I can't really include all the include files,
cause there's a lot. I've tried to narrow it down with no success.
The only thing I have been able to determine is that if I remove the
following forward declaration it works:
module print {
interface ids_PrintPreference;
};
Here's the command I'm using to compile this idl file:
idlj -d __idlj__ -d include_ids_Book -fclient -td stubs -i idl -i ../
idl idl/ids_Book.idl
I realize this is not a lot to go on. I'm grasping for straws and was
just hoping this might trigger someones memory of a bug in idlj and
that perhaps they might suggest some workaround or point me in some
direction.
Thanks,
Mike-
===========================================================================
To unsubscribe, send email to [email protected] and include in the body
of the message "signoff IDL-USERS". For general help, send email to
[email protected] and include in the body of the message "help".