Hello @valhalla-dev <[email protected]>,

While testing out the new Valhalla EA that came out a few days ago, I ran
into the following compiler error.

Here is a minified example.

public value class abc
{

        public abc()
        {
                throw new UnsupportedOperationException();
        }

        public static void someHelperMethod()
        {}

}

And here is the compiler error message.

$ java --enable-preview abc.java
abc.java:5: error: unreachable statement
        {
        ^
1 error
error: compilation failed


That location is the opening curly brace of the constructor.

Can we have a more clear error message?

Thank you for your time and consideration.
David Alayachew

Reply via email to