Open qiuxiaode opened 4 years ago
I'm sorry, I don't understand.
On Fri, Jul 10, 2020, 03:30 qiuxiaode notifications@github.com 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 https://github.com/crabhi/celery-java/issues/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 ,导致模板生成错误