[ 
https://issues.apache.org/jira/browse/CAY-2658?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17128365#comment-17128365
 ] 

Nikita Timofeev commented on CAY-2658:
--------------------------------------

Hi [~faizel]! I've pushed a fix for this [1]. Need to add more tests to check 
all our tools, as I've checked only maven plugin so far.

[1] 
https://github.com/apache/cayenne/commit/967f4d34387dd13b653813b798220b1a78cf46ef

> 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.M2
>
>
> 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)

Reply via email to