-1

So after many days of editing this java program, I'm new to java code, so i would be very greatful if someone could help me out here for the last error in the code. Basically the program spits out words/sentences at the push of buttons. ERROR: "SpamBot.access$008();" ERROR message: The method access$008() is undefined for the type SpamBot

If you need any more information just ask. Thanks in advance for any help

robot.keyPress(18);
      robot.keyPress(9);
      robot.keyRelease(18);
      SpamBot.access$008();
      if (JOptionPane.showConfirmDialog(new JFrame(), "You have reviewed " + SpamBot.numreviews + " songs. Would you like to review another song?", "New song", 0) == 0)
      {
        SpamBot bot = new SpamBot(speed);
        dispose();
      }
      else
      {
        System.exit(0);
      }
    }
  }
} 

1 Answers1

2

access$008 is a synthetic method generated by the Java compiler in the outer class when a nested class accesses a private method from the outer class (or vice versa). The method itself does not exist in source code form. If you want to make the program run, you will need to call the "real" method that it represents.

Some details here:

I suggest you use a better decompiler that can resolve these synthetic method accesses.

Community
  • 1
  • 1
Lukas Eder
  • 211,314
  • 129
  • 689
  • 1,509