Skip to content

Fix parent class resolution in c_glib generated dispatch_call#3393

Open
Jens-G wants to merge 1 commit intoapache:masterfrom
Jens-G:p10-c_glib-dispatch
Open

Fix parent class resolution in c_glib generated dispatch_call#3393
Jens-G wants to merge 1 commit intoapache:masterfrom
Jens-G:p10-c_glib-dispatch

Conversation

@Jens-G
Copy link
Copy Markdown
Member

@Jens-G Jens-G commented Apr 11, 2026

Client: c_glib

Use g_type_class_peek() with the processor type ID instead of GET_CLASS(self) when looking up the parent class in generated dispatch_call. GET_CLASS(self) returns the runtime class of the instance, which may differ from the class defining the method when service inheritance is used, leading to incorrect dispatch.

Client: c_glib

Use g_type_class_peek() with the processor type ID instead of
GET_CLASS(self) when looking up the parent class in generated
dispatch_call. GET_CLASS(self) returns the runtime class of the
instance, which may differ from the class defining the method
when service inheritance is used, leading to incorrect dispatch.

(10)

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@mergeable mergeable bot added the compiler label Apr 11, 2026
@Jens-G Jens-G added the c_glib label Apr 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants