You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Sep 28, 2022. It is now read-only.
All functions should be OK, since the module and the java class are in the same package. Indeed, in
module Main
import net.yloiseau.tools
function main = |args| {println(Main.callFun())println(Main.createA(42): answer())println(Main.callMeth())}
the first print that call a static function works just fine. However, both the function calling the constructor createA or the method callMeth fail with a NoSuchMethodError. Making the A constructor or meth method public works as expected.
Since the generated class representing the module, and thus the createA and callMeth methods are in the same package as the A class, the method should be found.
Given the Java class
and the golo module
All functions should be OK, since the module and the java class are in the same package. Indeed, in
the first print that call a static function works just fine. However, both the function calling the constructor
createA
or the methodcallMeth
fail with aNoSuchMethodError
. Making theA
constructor ormeth
method public works as expected.Since the generated class representing the module, and thus the
createA
andcallMeth
methods are in the same package as theA
class, the method should be found.Sample files here: https://github.com/yloiseau/golo-tests/tree/master/BUGS/520-package-visibility
The text was updated successfully, but these errors were encountered: