matyb/java-koans — Issue #13: IllegalAccessError in beginner.AboutObjects.toStringConcatenates
Author: ansyeow
Created: 2011-11-01 08:15:30+00:00
State: open

I got the following error:

```
Ponder what's going wrong in the: AboutObjects class's toStringConcatenates method.

Line 64 may offer a clue as to how you may progress, now make haste!

What went wrong:
java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at com.sandwich.koan.runner.KoanMethodRunner.run(KoanMethodRunner.java:28)
at com.sandwich.koan.runner.RunKoans.runKoans(RunKoans.java:67)
at com.sandwich.koan.runner.RunKoans.run(RunKoans.java:40)
at com.sandwich.koan.constant.ArgumentType.run(ArgumentType.java:74)
at com.sandwich.koan.cmdline.CommandLineArgument.run(CommandLineArgument.java:36)
at com.sandwich.koan.cmdline.CommandLineArgumentRunner.run(CommandLineArgumentRunner.java:26)
at com.sandwich.util.io.KoanFileCompileAndRunListener.fileSaved(KoanFileCompileAndRunListener.java:37)
at com.sandwich.util.io.FileMonitor.notifyListeners(FileMonitor.java:57)
at com.sandwich.util.io.FileMonitorFactory$1.run(FileMonitorFactory.java:29)
at java.lang.Thread.run(Unknown Source)
Caused by: java.lang.IllegalAccessError: tried to access class beginner.AboutObjects$1 from class beginner.AboutObjects
at beginner.AboutObjects.toStringConcatenates(AboutObjects.java:64)
... 14 more
```

```
java version "1.6.0_17"
Java(TM) SE Runtime Environment (build 1.6.0_17-b04)
Java HotSpot(TM) Client VM (build 14.3-b01, mixed mode, sharing)
```

I don't know what other info is needed.

Andrew :)