You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cayenne.apache.org by "Nikita Timofeev (JIRA)" <ji...@apache.org> on 2019/03/01 07:45:00 UTC
[jira] [Closed] (CAY-2544) Possible name clash of ivar and property
name in generated class
[ https://issues.apache.org/jira/browse/CAY-2544?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Nikita Timofeev closed CAY-2544.
--------------------------------
Resolution: Fixed
Property name will be appended with {{"_"}}, like this:
{code}
Property<String> URL_ = Property.create("URL", String.class);
{code}
*4.2* https://github.com/apache/cayenne/commit/653ba7ad454974db3c026d44382ddfc2d3ea42f0
*4.1* https://github.com/apache/cayenne/commit/beb27b2ef3d20b81803229dce0ba6d75c0cb0e56
> Possible name clash of ivar and property name in generated class
> ----------------------------------------------------------------
>
> Key: CAY-2544
> URL: https://issues.apache.org/jira/browse/CAY-2544
> Project: Cayenne
> Issue Type: Bug
> Components: cgen
> Affects Versions: 4.1.M2, 4.2.M1
> Reporter: Nikita Timofeev
> Assignee: Nikita Timofeev
> Priority: Major
> Fix For: 4.1.M3, 4.2.M1
>
>
> We generate same name for ivar and property if attribute name is all upper-case letters.
> Generated code looks like this:
> {code}
> public static final Property<String> URL = Property.create("URL", String.class);
> protected String URL;
> {code}
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)