When generating Java code with `InterfaceCodeGenerator` version 5.2.0 on the https://github.com/flatpak/xdg-desktop-portal/blob/main/data/org.freedesktop.portal.PowerProfileMonitor.xml file, the following property produces incorrect code: ```xml <property name="power-saver-enabled" type="b" access="read"/> ``` Problematic generated code: ```java @DBusBoundProperty boolean ispower-saver-enabled(); ``` Build error: ``` Execution failed for task ':sdk:compileJava'. > Compilation failed; see the compiler output below. /[redacted]/stargate/sdk/src/main/generated/org/freedesktop/portal/PowerProfileMonitor.java:14: error: = expected boolean ispower-saver-enabled(); ^ ``` The exact setup can be seen [here](https://github.com/zugaldia/stargate/blob/main/generator/src/main/kotlin/com/zugaldia/stargate/generator/Generator.kt#L43) (Stargate is a Kotlin library that provides JVM applications with access to XDG Desktop Portals on Linux). I've seen other generation errors with other XDG Portals related XML files. I'll open separate tickets for easier tracking.
Activity
zugaldia commentedon Mar 15, 2026
Fixed in the latest 6.0.0 snapshot, see #304 (comment).