This repository was archived by the owner on Feb 26, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
This repository was archived by the owner on Feb 26, 2023. It is now read-only.
AA 4.0.0 @Trace code is not generated #1750
Copy link
Copy link
Closed
Labels
Description
Is @trace Annotation working in 4.0.0? Somehow I see not effect
this is original class
@EBean
class DbConcurrentAccessWorker
{
@Trace(tag = PlaygroundApplication.TAG, level = AndroidConstants.LOG_WARN)
@Background(id = "worker")
public void doWork()
{
while (Thread.currentThread().isAlive())
{
if (random.nextBoolean())
{
writeToDb();
}
else
{
readFromDb();
}
}
Ln.w("Stopping");
}
@Trace(tag = PlaygroundApplication.TAG, level = AndroidConstants.LOG_WARN)
void writeToDb()
{
}
@Trace(tag = PlaygroundApplication.TAG, level = AndroidConstants.LOG_WARN)
void readFromDb()
{
}
}
and this is what I get after aa processing
public final class DbConcurrentAccessWorkerImpl
extends DbConcurrentAccessWorker
{
private Context context_;
private DbConcurrentAccessWorkerImpl(Context context) {
context_ = context;
init_();
}
public static DbConcurrentAccessWorkerImpl getInstance_(Context context) {
return new DbConcurrentAccessWorkerImpl(context);
}
private void init_() {
}
public void rebind(Context context) {
context_ = context;
init_();
}
@Trace(tag = "DE.TOMCOM.FRAMEWORK.PLAYGROUND", level = 5)
@Override
public void doWork() {
BackgroundExecutor.execute(new BackgroundExecutor.Task("worker", 0L, "") {
@Override
public void execute() {
try {
DbConcurrentAccessWorkerImpl.super.doWork();
} catch (final Throwable e) {
Thread.getDefaultUncaughtExceptionHandler().uncaughtException(Thread.currentThread(), e);
}
}
}
);
}
}
the first strange thing is why @trace is copied to target class. the second - there is no tracing at all.