How to access nested static classes using Rjb?
问题 Lets say a Java program defines the class A, which has a nested static class 'B'. How is it possible to access class B using the Ruby-Java Bridge? For example, these attempts do not work: A = Rjb::import('package.A') A.B A::B Is there a way to accomplish this? 回答1: Google cached this result from 2006. Sounds reasonable though, so take it and experiment! (PS: I'm a java + ruby user, but never used Rjb, so just passing along the info...) http://webcache.googleusercontent.com/search?q=cache