Apparently this happens when overriding an interface method.
For example:
public interface Dao<T> extends JpaRepository<T, Long> {
...
@Transactional(propagation = Propagation.MANDATORY, rollbackFor = Throwable.class)
@Override
@NotNull
<S extends T> S save(@NotNull S entity);
...
}
@Validated
public interface MyDao extends Dao<My> {
@Transactional(propagation = Propagation.MANDATORY, rollbackFor = Throwable.class)
@Override
@NotNull
<S extends Project> S save(@NotNull S entity);
}
A call to the save() method will cause a null pointer exception.
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
Apparently this happens when overriding an interface method.
For example:
public interface Dao<T> extends JpaRepository<T, Long> {
...
@Transactional(propagation = Propagation.MANDATORY, rollbackFor = Throwable.class)
@Override
@NotNull
<S extends T> S save(@NotNull S entity);
...
}
@Validated
public interface MyDao extends Dao<My> { @Transactional(propagation = Propagation.MANDATORY, rollbackFor = Throwable.class) @Override @NotNull <S extends Project> S save(@NotNull S entity); }
A call to the save() method will cause a null pointer exception.