Hello!
I am debugging a project that I inherited from someone else.
The run aborts with an exception stack, of which one is access$1900.
What can this mean?
I do not find any reference to a method named access in the entire api
documentation.
Thanks
Michael
Wojtek - 10 Sep 2007 21:46 GMT
Michaelp wrote :
> Hello!
>
[quoted text clipped - 9 lines]
>
> Michael
Google kicks out 265 pages for access$1900

Signature
Wojtek :-)
Michaelp - 11 Sep 2007 05:08 GMT
> --
> Wojtek :-)
Thanks, Wojtek :-)
Found those too.
At least the first 20 of them have it as a part of a pasted stack-
trace.
Michael :-)
Joshua Cranmer - 10 Sep 2007 22:06 GMT
> Hello!
>
[quoted text clipped - 9 lines]
>
> Michael
access$1900 is a synthetic method that is used so that inner classes can
use the private variables of its respective outer class. If you want to
figure out which variable it is accessing, you can run `javap -c [fully
qualified class name]` and then find the output for the method access$1900.

Signature
Beware of bugs in the above code; I have only proved it correct, not
tried it. -- Donald E. Knuth
Mike Schilling - 10 Sep 2007 22:08 GMT
> Hello!
>
> I am debugging a project that I inherited from someone else.
> The run aborts with an exception stack, of which one is access$1900.
>
> What can this mean?
Probably that it's a generated method used to access a private field (or
method) of an inner class.
Roedy Green - 11 Sep 2007 05:55 GMT
>I am debugging a project that I inherited from someone else.
>The run aborts with an exception stack, of which one is access$1900.
>
>What can this mean?
Let's see the rest of the stack dump.

Signature
Roedy Green Canadian Mind Products
The Java Glossary
http://mindprod.com
rossum - 11 Sep 2007 23:20 GMT
>Hello!
>
[quoted text clipped - 9 lines]
>
>Michael
How do I fit "There I was expecting to get $1900 paid into my new
PayPal account when I signed up to your new sure-fire money making
scheme, and all I got was this lousy Java technical question." onto my
T-shirt? :)
rossum