func size(env *gojvm.Environment, obj *gojvm.Object) (len int, err error) { len, err = obj.CallInt(env, false, "size") if err != nil { return } return }
func (g *JavaToGoInt) Convert(obj *gojvm.Object) (err error) { v, err := obj.CallInt(g.env, false, "intValue") if err != nil { return } *g.intPtr = v return }