AnsweredAssumed Answered

Creating own CustomServiceTask with PropertyItems annotation

Question asked by marcin.lepicki on Oct 28, 2011
Latest reply on Dec 1, 2011 by tiesebarrell
Hi,

I'm trying to create own shape in the Designer. I want to use PropertyItems annotation, but this gives me error:
annotation org.activiti.designer.integration.servicetask.annotation.PropertyItems is missing <clinit>
I think that it is sun javac bug: fields initializers using "new" cause this bug when annotation class is in the classpath http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6857918 while the same works in the eclipse compiler https://bugs.eclipse.org/bugs/show_bug.cgi?id=324931
Of couse, there is static field with initializer in the PropertyItems annotation: http://svn.codehaus.org/activiti/projects/designer/trunk/org.activiti.designer.integration/src/main/java/org/activiti/designer/integration/servicetask/annotation/PropertyItems.java

The easiest way to reproduce is downloading AcmeMoneyTask example and trying to compile it:
svn checkout http://svn.codehaus.org/activiti/projects/designer/trunk/examples/
cd examples/money-tasks
(optional if you use profile with repos) add http://maven.alfresco.com/nexus/content/repositories/activiti/ repo to pom.xml
mvn compile
This gives me error:
[ERROR] /path/to/files/examples/money-tasks/src/main/java/org/acme/servicetasks/AcmeMoneyTask.java:[85,2] annotation org.activiti.designer.integration.servicetask.annotation.PropertyItems is missing <clinit>

My environment: Ubuntu Linux 10.04, Sun Java 1.6.0_26, Maven 3.0.3

Any advice on this problem? Should I fill JIRA bug?

Outcomes