Constant annotation is not seen as such
@TransactionAttribute(TransactionAttributeType.SUPPORTS)
has TransactionAttributeType.SUPPORTS and error is: "annotation argument needs to be a constant; found: TransactionAttributeType.SUPPORTS{}"
This is defined as:
public final enum javax.ejb.TransactionAttributeType
...
public static final enum javax.ejb.TransactionAttributeType SUPPORTS;
has TransactionAttributeType.SUPPORTS and error is: "annotation argument needs to be a constant; found: TransactionAttributeType.SUPPORTS{}"
This is defined as:
public final enum javax.ejb.TransactionAttributeType
...
public static final enum javax.ejb.TransactionAttributeType SUPPORTS;
Leave a comment
on 2011-03-25 10:11 *
By Iulian Dragos
Version set to 1.0.0-SNAPSHOT
Eclipse version set to Helios
Branch set to wip_experiment (2.9)
Updating tickets (#1000238, #1000326, #1000331, #1000264, #1000298, #1000314, #1000315, #1000325, #1000329, #1000333, #1000277, #1000209, #1000210, #1000288, #1000299, #1000300, #1000301, #1000305, #1000309, #1000310, #1000327, #1000270, #1000292, #1000293, #1000294, #1000295, #1000297, #1000303, #1000304, #1000312, #1000320)
Closing as invalid.
I cannot reproduce the problem on 2.0.0-2.9 + Eclipse JEE 3.6.2. This has likely been fixed during 2.0 development.
I used the following code in an EJB project.
Please reopen with additional information if you still see the problem.
I cannot reproduce the problem on 2.0.0-2.9 + Eclipse JEE 3.6.2. This has likely been fixed during 2.0 development.
I used the following code in an EJB project.
package t270
import javax.ejb.TransactionAttribute
import javax.ejb.TransactionAttributeType
class ScalaClass {
@TransactionAttribute(TransactionAttributeType.SUPPORTS)
var e= "Test"
}
Please reopen with additional information if you still see the problem.