compiler error when trying to send a list of structs containing a list of strings over DBus

Bug #511538 reported by Markus Korn
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Vala
Fix Released
Medium
vala (Ubuntu)
Fix Released
Low
Unassigned

Bug Description

When I try to compile the following code in karmic or lucid I get an error:

client.vala
===========

struct Data {
   public int id;
   public string[] data;
}

[DBus (name = "org.example.Test")]
interface Test : Object {
   public abstract int TestMethod (Data[] x) throws DBus.Error;
}

void main () {
   var conn = DBus.Bus.get (DBus.BusType.SESSION);
   var test = (Test) conn.get_object ("org.example.Test", "/org/example/test");
}

========

markus@markus-lucid-vbox:~/devel/vala_playground$ valac --pkg dbus-glib-1
client.vala
[... (some never used warnings) ...]
/home/markus/devel/vala_playground/client.vala.c: In function
‘_dbus_test_TestMethod’:
/home/markus/devel/vala_playground/client.vala.c:271: error: invalid type
argument of ‘->’ (have ‘Data’)
/home/markus/devel/vala_playground/client.vala.c: In function
‘test_dbus_proxy_TestMethod’:
/home/markus/devel/vala_playground/client.vala.c:539: error: invalid type
argument of ‘->’ (have ‘Data’)
error: cc exited with status 256
Compilation failed: 1 error(s), 5 warning(s)

markus@markus-lucid-vbox:~/devel/vala_playground$ valac --version
Vala 0.7.9

Markus

Revision history for this message
Markus Korn (thekorn) wrote :

The upstream bugreport has a patch for this issue, it would be nice if this could be fixed for lucid

Changed in vala (Ubuntu):
status: New → Triaged
Revision history for this message
Julien Lavergne (gilir) wrote :

Thanks for the report.

The vala 0.7.10 is Lucid should contain the fix.

Changed in vala (Ubuntu):
importance: Undecided → Low
status: Triaged → Fix Released
Changed in vala:
importance: Unknown → Medium
status: Unknown → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.