[ 
https://issues.apache.org/jira/browse/OFBIZ-2948?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12759186#action_12759186
 ] 

Shi Yusen commented on OFBIZ-2948:
----------------------------------

Hi Jacques,

The reason is simple, I defined several interface classes in rmi module, so the 
services are not written in static. To run the services, I changed the invoke 
sentence. For myself convenience, I wish this could be changed.

My dirty mind behind? Yes, if this could be changed, I'm sure we can see more 
and more interface classes and less and less static methods in OFBiz.:)

> A minor change in org.ofbiz.service.engine.StandardJavaEngine
> -------------------------------------------------------------
>
>                 Key: OFBIZ-2948
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-2948
>             Project: OFBiz
>          Issue Type: Wish
>    Affects Versions: Release Branch 9.04
>         Environment: FC10 + OpenJDK 1.6
>            Reporter: Shi Yusen
>            Priority: Trivial
>             Fix For: Release Branch 9.04
>
>
> Change
>             result = m.invoke(null, dctx, context);
> to
>             result = m.invoke(c.newInstance(), dctx, context);
> This change will make it possible to invoke both static method and instance 
> method. See 
> http://java.sun.com/j2se/1.5.0/docs/api/java/lang/reflect/Method.html#invoke(java.lang.Object,%20java.lang.Object...).
> I've tested this in OFBiz 9.04 and works fine.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to