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
{{ message }}
This repository was archived by the owner on Feb 26, 2023. It is now read-only.
Repository navigation
This repository was archived by the owner on Feb 26, 2023. It is now read-only.
I just read your comments about Eclipse internal builder, so i checked this case with maven - it builds successfully. @Artyomcool was right, there is a compile-time test for this.
There is an option in the m2e-apt plugin - which is in the wiki for using AA, but not in the contribution page (why?) - to use the normal APT and not the Eclipse internal JDT APT. To use this option, the POM should be changed to configure correctly the maven-processor-plugin. Unfortunately, i was not able to do so, the problem was that APT did not found the R class. May be you guys can try it out. This could solve all the problems with the Eclipse internal builder, but only for Maven users.
My best gues - eclipse know nothing about elementType (because build is incrimental), so it is presented just as a direct declaration and erasure can't do the job. What do you think? Should I parse it manually?
Activity
pyricau commentedon Mar 26, 2012
It's more than just this warning. The generated subclass should be parameterized too, and getInstance should return a covariant result.
Remove provided scope of support lib dependency in pom.xml.
WonderCsabo commentedon Jan 10, 2014
This still does not work unfortunately.
The generated import:
The generated injection:
Artyomcool commentedon Jan 10, 2014
This is exactly I'm talking about in #865 (and fixed by #867 PR)
WonderCsabo commentedon Jan 10, 2014
@DayS, can you check @Artyomcool's PR someday?
DayS commentedon Jan 10, 2014
I'm on it right now. I started 3.0.1 release.. But I'll revert it. This should be fixed before
WonderCsabo commentedon Jan 13, 2014
The problem described in my comment is still here. :S
Artyomcool commentedon Jan 13, 2014
Sorry for asking, but are you sure?
There is exactly such test case and it's ok.
Could you double check?
Artyomcool commentedon Jan 13, 2014
If it is, could you provide full source code?
WonderCsabo commentedon Jan 13, 2014
Of course.
Generated code:
Project is available here.
DayS commentedon Jan 13, 2014
Yep, just confirmed.. Fu** >_<
By the way, generated getInstance method should look like this :
instead of
It's optional but it may be cleaner :) (Unless this is too much work and complexity in code)
WonderCsabo commentedon Jan 13, 2014
I just read your comments about Eclipse internal builder, so i checked this case with maven - it builds successfully. @Artyomcool was right, there is a compile-time test for this.
Artyomcool commentedon Jan 13, 2014
Not much. I'll do my bests to fix it tomorrow.
13.01.2014 23:01 ÐÏÌØÚÏ×ÁÔÅÌØ "Damien" notifications@github.com ÎÁÐÉÓÁÌ:
Artyomcool commentedon Jan 13, 2014
Looks like I need to install eclipse :)
WonderCsabo commentedon Jan 13, 2014
There is an option in the
m2e-aptplugin - which is in the wiki for using AA, but not in the contribution page (why?) - to use the normal APT and not the Eclipse internal JDT APT. To use this option, the POM should be changed to configure correctly themaven-processor-plugin. Unfortunately, i was not able to do so, the problem was that APT did not found theRclass. May be you guys can try it out. This could solve all the problems with the Eclipse internal builder, but only for Maven users.Artyomcool commentedon Jan 14, 2014
@DayS, looks the only way it can be fixed - if eclipse can't give me erasure - parse the class name manually:
In BeanHandler:
My best gues - eclipse know nothing about
elementType(because build is incrimental), so it is presented just as a direct declaration and erasure can't do the job. What do you think? Should I parse it manually?Artyomcool commentedon Jan 14, 2014
Gradle always uses normal APT (AFAIK), so not only for Maven, but for gradle too.
WonderCsabo commentedon Jun 9, 2014
What is the status of this issue? Should this be closed?