You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@thrift.apache.org by "Jens Geyer (Jira)" <ji...@apache.org> on 2022/10/17 19:26:00 UTC

[jira] [Resolved] (THRIFT-5656) Escape Delphi keywords with '&' prefix instead of '_' suffix

     [ https://issues.apache.org/jira/browse/THRIFT-5656?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jens Geyer resolved THRIFT-5656.
--------------------------------
    Fix Version/s: 0.18.0
       Resolution: Fixed

> Escape Delphi keywords with '&' prefix instead of '_' suffix
> ------------------------------------------------------------
>
>                 Key: THRIFT-5656
>                 URL: https://issues.apache.org/jira/browse/THRIFT-5656
>             Project: Thrift
>          Issue Type: Improvement
>          Components: Delphi - Compiler
>            Reporter: Jens Geyer
>            Assignee: Jens Geyer
>            Priority: Major
>              Labels: breaking_change
>             Fix For: 0.18.0
>
>          Time Spent: 20m
>  Remaining Estimate: 0h
>
> Currently the Delphi compiler does not differentiate between real Delphi language keywords (that can be escaped via & prefix) and predefined names/types that must be handled differently (we do this by adding a underscore postfix so it becomes e.g. 'System_' instead of 'System' which would collide with the Delphi runtime unit of that name).
> This patch addresses this and handles keywords properly with '&' by {+}default{+}.
> {*}Compatibility{*}: This may break code if one of the Delphi keywords has been used in the IDL. 
> {*}Workaround{*}. The old behaviour can be restored via Thrift compiler switch.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)