Closed marcospassos closed 7 years ago
Hey Marcos,
Not sure about this one, the bridge cannot implicitly make the difference between an inner class and a package namespace... and searched for the com.acme.ClassName.<RegularX>Class
instead.
Can you try with the $
separator instead of the dot like this:
$inner = $ba->java('com.acme.ClassName$InnerClass');
Be sure to use single quotes, otherwise the
$
sign will be interpreted on the php side.
Let me know if it works for you ? I'll update the doc accordingly.
Thanks
Yes, it works. I'd recommend you to make it part of the documentation.
Thank you again!
Hi Marcos,
Reopening the issue till the doc is fine. I've added a test case based on java.util.Calendar.Builder inner class...
See the unit test: https://github.com/belgattitude/soluble-japha/blob/master/test/src/SolubleTest/Japha/Bridge/AdapterUsageInnerClassTest.php#L46
Looks like inner classes are not currently supported:
Error