The $ is used to seperate the inner class from the main class;
Example:
packager a.b.c
public class MyClass {
...
static class OtherClass {
void someMethod() {
...
exception.printStackTrace();
...
}
...
}
...
}
would print out as ' at a.b.c.MyClass$OtherClass.someMethod
(MyClass.java:322)'
I'm not sure about the '2500'. It could be an anonymous class..?
public void accessExample() {
Runnable r = new Runnable() {
public void run() { ... }
};
...
}
where the class of the instance 'r' is anonymous and compiled as
'2500'.
On Aug 25, 11:47 am, Brian <[email protected]> wrote:
> Hi all,
>
> I wanted to understand what the $ sign and the number after a $ sign
> meant in a backtrace.
>
> For example, consider the following backtrace:
>
> at android.app.ActivityThread.access$2500(ActivityThread.java:115)
> at android.app.ActivityThread$H.handleMessage(ActivityThread.java:
> 1745)
>
> In the first line, what does the number 2500 refer to? In addition, I
> couldn't find the function "access" in ActivityThread.java, and line
> 115 is just the beginning of the class. Can anyone help clarify this?
> Thanks!
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---