Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TaskLoader.vm and TaskProxy.vm error #28

Open
qiuxiaode opened this issue Jul 10, 2020 · 1 comment
Open

TaskLoader.vm and TaskProxy.vm error #28

qiuxiaode opened this issue Jul 10, 2020 · 1 comment

Comments

@qiuxiaode
Copy link

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 ,导致模板生成错误

@crabhi
Copy link
Owner

crabhi commented Jul 10, 2020 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants