In below stuff, shows me an error as "The type TransactionCallback is not generic; it cannot be parameterized with arguments " in eclipse editor.
import com.atlassian.sal.api.transaction.TransactionCallback;
ao.executeInTransaction(new TransactionCallback<EntityIssues>() // (1)
{
@Override
public Todo doInTransaction()
{
//storing stuff
}
});
<dependency>
<groupId>com.atlassian.sal</groupId>
<artifactId>sal-api</artifactId>
<version>2.0.17</version>
<scope>provided</scope>
</dependency>
my JAVASE version is - 1.7.0
any idea why it does not taking generic object ?
You could simply remove the generic parameterization:
new TransactionCallback()