java - Why is final variable not inspectable? -


i'm reworking code make usable new roottools 3.0 (which fixes important bug):

one section rewrote looks this, callback-class better readability. i'm adding size of 2 directories tell total of browser cache may cleared:

@override protected void onresume() {     super.onresume();     //refresh views:     try {         //show browser's cache size:         shellcommands.getlisting("/data/data/com.android.browser/app_databases/", null, new callback<sumsize>() {             @override             public void call(sumsize localstore) throws interruptedexception, ioexception, timeoutexception, rootdeniedexception {                 final sumsize total = localstore;                 getfirefoxprofiles(new callback<string>() {                     @override                     public void call(string input) throws interruptedexception, ioexception, timeoutexception, rootdeniedexception {                         shellcommands.getlisting(input+"/cache/", null, new callback<sumsize>() {                             @override                             public void call(sumsize input) {                                 total.add(input);                                 ((textview)findviewbyid(r.id.lblclearbrowser)).settext(total.getreadable());                             }                         });                     }                 });             }         }); 

a bit more complex .waitforfinish, i'm having serious problem in debugging: inner call(sumsize input) seems work correctly, there no way see total when debugging. bug in java final outer variables? bug in android? bug in eclipse?

your variables view needs set show constants. can toggle java section of local menu.


Comments

Popular posts from this blog

java - nested exception is org.hibernate.exception.SQLGrammarException: could not extract ResultSet Hibernate+SpringMVC -

sql - Postgresql tables exists, but getting "relation does not exist" when querying -

asp.net mvc - breakpoint on javascript in CSHTML? -