[ http://issues.apache.org/jira/browse/BEEHIVE-613?page=all ]
Rich Feit updated BEEHIVE-613: ------------------------------ Assign To: Rich Feit I can take this one. I think it's OK for there to be a default value of empty-array, as long as it doesn't NPE. > ControlReferences annotation causes apt exception with default value > -------------------------------------------------------------------- > > Key: BEEHIVE-613 > URL: http://issues.apache.org/jira/browse/BEEHIVE-613 > Project: Beehive > Type: Bug > Components: Controls > Versions: TBD > Reporter: Chad Schoettger > Assignee: Rich Feit > Priority: Minor > > If the @ControlReferences annotation is used and value is not set, apt > excepts with a null pointer exception. It seems like there should not be a > default value for this annotation. > build: > [apt] Compiling 2 source files to > D:\beehive_alt\trunk\build\dist\apache-beehive-inc > ubating-svn-snapshot\samples\controls-blank\build\classes > [apt] Problem encountered during annotation processing; > [apt] see stacktrace below for more information. > [apt] java.lang.NullPointerException > [apt] at > org.apache.beehive.controls.runtime.generator.apt.ControlClientAnnotati > onProcessor.checkControlClientType(ControlClientAnnotationProcessor.java:411) > [apt] at > org.apache.beehive.controls.runtime.generator.apt.ControlClientAnnotati > onProcessor.check(ControlClientAnnotationProcessor.java:60) > [apt] at > org.apache.beehive.controls.runtime.generator.apt.TwoPhaseAnnotationPro > cessor.check(TwoPhaseAnnotationProcessor.java:104) > [apt] at > org.apache.beehive.controls.runtime.generator.apt.TwoPhaseAnnotationPro > cessor.process(TwoPhaseAnnotationProcessor.java:86) > [apt] at > com.sun.mirror.apt.AnnotationProcessors$CompositeAnnotationProcessor.pr > ocess(AnnotationProcessors.java:60) > [apt] at com.sun.tools.apt.comp.Apt.main(Apt.java:404) > [apt] at > com.sun.tools.apt.main.JavaCompiler.compile(JavaCompiler.java:440) > [apt] at com.sun.tools.apt.main.Main.compile(Main.java:1017) > [apt] at com.sun.tools.apt.main.Main.compile(Main.java:907) > [apt] at com.sun.tools.apt.Main.compile(Main.java:41) > [apt] at com.sun.tools.apt.Main.main(Main.java:32) -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira