You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cayenne.apache.org by "Faizel Dakri (Jira)" <ji...@apache.org> on 2020/05/23 16:07:00 UTC

[jira] [Created] (CAY-2658) DataChannelMetaData is null during cgen execution

Faizel Dakri created CAY-2658:
---------------------------------

             Summary: 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


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)