You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cayenne.apache.org by GitBox <gi...@apache.org> on 2019/05/06 19:34:55 UTC

[GitHub] [cayenne] johnthuss opened a new pull request #383: Cgen - Avoid class loader issues causing missing classes

johnthuss opened a new pull request #383: Cgen - Avoid class loader issues causing missing classes
URL: https://github.com/apache/cayenne/pull/383
 
 
   Cgen - Avoid class loader issues causing missing classes; don't swallow missing class errors completely
   
   It took me almost a full day to find where an exception was being swallowed which would have indicated the problem here. Whatever class loader is being used by Cgen (AdhocObjectFactory) is not picking up classes that are available in the default class loader - namely all the Joda classes, like org.joda.time.LocalDateTime.
   
   This change will make it fallback to using the default class loader if a class is not found, and will log a single line WARNing if the class isn't found by either class loader.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services