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 2021/03/03 08:26:00 UTC
[jira] [Closed] (CAY-2658) DataChannelMetaData is null during cgen
execution
[ https://issues.apache.org/jira/browse/CAY-2658?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Nikita Timofeev closed CAY-2658.
--------------------------------
Resolution: Fixed
> DataChannelMetaData is null during cgen execution
> -------------------------------------------------
>
> Key: CAY-2658
> URL: https://issues.apache.org/jira/browse/CAY-2658
> Project: Cayenne
> Issue Type: Bug
> Components: cgen
> Affects Versions: 4.2.M2
> Environment: Mac OS X 10.15.4
> Cayenne 4.2.M2
> Reporter: Faizel Dakri
> Assignee: Nikita Timofeev
> Priority: Minor
> Fix For: 4.2.M3
>
>
> During cgen execution, the {{DataChannelMetaData}} instance is not set upon data map load. It looks like {{CgenModule}} does not bind to the {{ExtensionAwareHandlerFactory}}, nor does it load the {{InfoExtension}}, so when the data map is loaded, the metadata instance is null. This causes metadata lookups to fail from the {{MetadataUtils}} class that is supplied to the velocity context during class generation.
> I *think* fix is to have {{CgenModule}} bind to the {{ExtensionAwareHandlerFactory}} and then let {{ProjectModule}} contribute the {{InfoExtension}}.
>
--
This message was sent by Atlassian Jira
(v8.3.4#803005)