Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

compilation error #59

Open
swamikevala opened this issue Jul 13, 2021 · 2 comments
Open

compilation error #59

swamikevala opened this issue Jul 13, 2021 · 2 comments

Comments

@swamikevala
Copy link

getRandomPort() method is referenced in lia.util.net.common.Config.java but is not defined - leading to a "cannot find symbol" compilation error

latest commit is 713139f

@Elyasin
Copy link

Elyasin commented Aug 21, 2021

Do a git checkout prod and try again. The branch after cloning is in development is my guess.
The production branch seems to work fine to me. You might need to install some tools though, depending on your operating system.

@Elyasin
Copy link

Elyasin commented Aug 21, 2021

I had a closer look at it. There seems to be missing the method below. Once you add it, it compiles. I did not test it though.
Maybe it is a bug that this part is missing or maybe the development is not finished yet.

    private int getRandomPort(int defaultPort)
    {
        int randomPort = -1;
        try {
            Random r = new Random();
            randomPort = r.nextInt(((defaultPort + portRange) - defaultPort) + 1) + defaultPort;
            logger.log(Level.INFO, "Auto FDT on port " + randomPort);
            new Thread(new Runnable() {
                @Override
                public void run() {
                    new FDTMain();
                }
            }, "FDT custom port " + randomPort).start();
        }
        catch (Exception e)
        {
            logger.log(Level.INFO, " FAILED auto FDT on port " + randomPort);
        }
        return randomPort;
    }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants