lishunli / projectlombok

Automatically exported from code.google.com/p/projectlombok
0 stars 0 forks source link

@Delegate should preserve any annotation from the delegated method #568

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?

1.Use @Delegate to forward a method with a GUICE @Transactional annotation 
(springs annotations should be an issue either)

2.Any delegated method annotated with @Transactional at the delegated type 
looses this annotation and then is not transactional any more

The delegated type with a transactional method:

public class MyTransactionalMethodContainingType {
    @Transactional
    public void myTransactionalMethod(...) {
        // do something that should be transactional
    }
}

The delegated type container:

public class MyContainer {
    @Delegate
    private MyTransactionalMethodContainingType _transactionalType;
}

Original issue reported on code.google.com by futurete...@gmail.com on 29 Aug 2013 at 2:06