Working through the nonsense above i made an example annotation processor to use as a demo
What kind of annotation processing do you need?
I wrote an annotation parser recently
i didn’t need any - i just wanted to have an example project that compiled and packaged one up right
still a long way out from that - this is just the one i wrote for that purpose
but I do need help if you know how to properly carry over annotations in generated code, just to make that library workable
the most basic one is TYPE_USE annotations like
@Target(TYPE_USE)
@interface ABC {}
class Ex {
@ABC List<@ABC String> fieldName;
}
Which needs to turn in to
java.util.@ABC List<java.lang.@ABC String>
In my generated codebut currently turns into
@ABC java.util.List<@ABC java.lang.String>
Which is wrong and doesnt compileSorry, I messed with the parsing part, not generation
but i turns out something is broken in the universe and there weren’t like a million hello world annotation processors like this
so there you go i guess. if anyone is using hibernate/jpa or whatever xml library that requires classes like this and doesn’t want to depend on lombok 🤷
(seriously, education feels busted)