#.require. jvm namespace Test class Test def main is shared # this would be ideal but its deprecated # maybe use to test Attributes/Annotations when add handling for them #d = Date() #minutes = d.minutes # d.getMinute #d.minutes = minutes # d.setMinute #print d fd = Java.Beans.FeatureDescriptor() fd.name = 'Polly' fd.shortDescription = 'Polly wolly Doodle' #print 'FeatureDescriptor: [fd.getName], [fd.getShortDescription]' name = fd.name fd.name = '[name]nu' #print 'FeatureDescriptor: [fd.getName], [fd.getShortDescription]' assert fd.name == 'Pollynu' assert fd.shortDescription == 'Polly wolly Doodle'