0

in the error text the class name is the same, the only thing changed is the end of the first class name added de '$2'

DiverseAndRemote.com
  • 19,314
  • 10
  • 61
  • 70
  • 5
    Can you edit your post to show your `class_name_x` class? We're not magical psychic fairies. – Cat Oct 04 '12 at 19:06
  • Could you explain a bit more? Usually a class not found is due to it not being in your build path. – robbieAreBest Oct 04 '12 at 19:06
  • 1
    This means it is trying to use an anonymous class (the second one) which is no longer there. Perhaps you forgot to deploy it. – Peter Lawrey Oct 04 '12 at 19:12
  • this is the error message: 10-03 20:23:17.362: E/dalvikvm(752): Could not find class 'com.sistema.multiagente.ActividadEspera$2', referenced from method com.sistema.multiagente.ActividadEspera. – Albert Buhaya Oct 04 '12 at 23:12

1 Answers1

0

You call method of second anonymous class defined inside class_name_x from constructor of class_name_x which is shown by JVM with .<init> suffix.

Check out this question Java - get the current class name?

Community
  • 1
  • 1
Victor Sorokin
  • 11,878
  • 2
  • 35
  • 51