You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
On Fri, Jul 10, 2020, 03:30 qiuxiaode ***@***.***> wrote:
celery-java 在运行task时,会加载task类信息,启用TaskLoader.vm和TaskProxy.vm
在annotations下生成模板,而在加载类信息是会有一个bug,当我的task类是在java下,那么他默认是没有package信息的,所以会导致生成错误的模板
com.geneea.celery.annotationprocessor.TaskProcessor.process 有如下代码:
PackageElement packageElement = (PackageElement)
taskClassElem.getEnclosingElement();
Name packageName = packageElement.getQualifiedName();
writeProxy(taskClassElem, methods, packageName);
writeLoader(taskClassElem, packageName);
这里的packageName 为null ,导致模板生成错误
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#28>, or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAHX3TVTND6L5RGNSMEKD2DR2ZVMXANCNFSM4OWEHXEQ>
.
celery-java 在运行task时,会加载task类信息,启用TaskLoader.vm和TaskProxy.vm 在annotations下生成模板,而在加载类信息是会有一个bug,当我的task类是在java下,那么他默认是没有package信息的,所以会导致生成错误的模板
com.geneea.celery.annotationprocessor.TaskProcessor.process 有如下代码:
PackageElement packageElement = (PackageElement) taskClassElem.getEnclosingElement();
Name packageName = packageElement.getQualifiedName();
这里的packageName 为null ,导致模板生成错误
The text was updated successfully, but these errors were encountered: