DBUS introspection (Was: DCOP interface in kicker broke compatibility?)

Havoc Pennington hp at redhat.com
Fri Feb 4 19:30:38 PST 2005


On Wed, 2005-02-02 at 23:20 -0500, David A. Wheeler wrote:
> Feel free to include it in the CVS tree!

Done, thanks.

I removed "raises"; I think there are problems with that, because
there's really only one language that puts the raises in the type
signature for methods (Java). I happen to think Java got this right, but
still, nothing else does it. So when introspecting based on native
language introspection, the raises clause would normally be bogus.

More importantly, D-BUS doesn't make guarantees here; if you send any
method over a bus, the bus can raise its own exceptions due to problems
sending over the bus (e.g. low memory). It's also allowed to have non-
socket transports, or bridges to other systems, that could throw new
kinds of error.

I don't think we should have "raises" if it's going to be wrong as often
as I think it would be.

I did decide the deprecated attribute could be useful, so I left it
there, with one change: the default is now the deprecated status of the
containing interface. So that was a small DTD change to remove the
default from signals, methods, and properties.

Havoc




More information about the dbus mailing list