Script attached. When run should output "It worked!" but fails with
uninitialized constant SWT (NameError)
Can you confirmt the SWT you get back in the second case is actually what you think it is? I suspect the org.eclipse.swt.SWT you're seeing isn't actually a class or interface and we're just turning it into another package module.
When I run the test or our application with JRuby 1.1.5 it fails. When running with JRuby trunk it succeeds. I haven't bisected the exact revision, but since it's not a problem for us anymore, I resolve the issue.