[GREENFOOT-266] Non-public ("package private") classes' static methods cannot be called
As reported by Joe Bergin:
bq. I built a class with a public static method. However, I forgot to label the class itself public (default visibility). The class shows up fine in Greenfoot and the method shows up in the popup, but when I try to invoke it I get an error via reflection (can't invoke a public static...) which is likely correct but it took me a while to notice what had happened. If I hadn't had another class at the same level of the system with similar (but public) characteristics I might have given up.
Issue metadata
- Issue type: Bug
- Priority: Low
- Fix versions: 2.0