Skip to content

InterfaceCodeGenerator wraps @DBusBoundProperty type parameter in quotes #306

Closed

Description

@zugaldia

When generating interfaces with @DBusBoundProperty annotations that include a type parameter, the code generator produces a string literal instead of a class reference:

// Generated
@DBusBoundProperty(type = "PropertySupportedOptionsType.class")                                                                                 

Instead of:

// Expected                                                                                                                                     
@DBusBoundProperty(type = PropertySupportedOptionsType.class)                                                                                   

This causes a compilation error since type expects Class<?>, not String.

Reproduced with 6.0.0-SNAPSHOT generating from the org.freedesktop.portal.Notification XML definition. PR demonstrating this change in downstream project: zugaldia/stargate#20. Workaround in this commit: zugaldia/stargate@457ed25

Activity

  1. hypfvieh commented on Mar 15, 2026

    @hypfvieh
    Owner

    I added a small patch to fix this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions