File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -38,10 +38,10 @@ public function __construct(JavaClass $javaClass)
3838 */
3939 $ methodName = $ cpInfo [$ methodInfo ->getNameIndex ()]->getString ();
4040
41- if ($ methodInfo ->getAccessFlag () === 0 || ($ methodInfo ->getAccessFlag () & AccessFlag::_Public) !== 0 ) {
42- $ this ->dynamicMethods [$ methodName ] = $ methodInfo ;
43- } elseif (($ methodInfo ->getAccessFlag () & AccessFlag::_Static) !== 0 ) {
41+ if (($ methodInfo ->getAccessFlag () & AccessFlag::_Static) !== 0 ) {
4442 $ this ->staticMethods [$ methodName ] = $ methodInfo ;
43+ } elseif ($ methodInfo ->getAccessFlag () === 0 || ($ methodInfo ->getAccessFlag () & AccessFlag::_Public) !== 0 ) {
44+ $ this ->dynamicMethods [$ methodName ] = $ methodInfo ;
4545 }
4646 }
4747
Original file line number Diff line number Diff line change 88 new \PHPJava \Core \JavaClassReader (__DIR__ . '/Test.class ' )
99);
1010$ invoker = new JavaClassInvoker ($ javaClass );
11- $ invoker ->getDynamicMethods ()->main ([999 , 222 , 3333 ]);
11+ $ invoker ->getStaticMethods ()->main ([999 , 222 , 3333 ]);
1212$ invoker ->debug ();
You can’t perform that action at this time.
0 commit comments