Gili created NETBEANS-435:
-----------------------------

             Summary: Improve error message for "Illegal forward reference"
                 Key: NETBEANS-435
                 URL: https://issues.apache.org/jira/browse/NETBEANS-435
             Project: NetBeans
          Issue Type: Improvement
         Environment: Product Version: Apache NetBeans IDE Dev (Build 
incubator-netbeans-release-222-on-20180226)
Java: 9.0.4; Java HotSpot(TM) 64-Bit Server VM 9.0.4+11
Runtime: Java(TM) SE Runtime Environment 9.0.4+11
System: Windows 10 version 10.0 running on amd64; Cp1252; en_CA (nb)
User directory: C:\Users\Gili\AppData\Roaming\NetBeans\dev
Cache directory: C:\Users\Gili\AppData\Local\NetBeans\Cache\dev
            Reporter: Gili


Given:
{code}
private final Supplier<String> first = () ->
{
        return second;
};
private final String second = "second";
{code}

Netbeans places an error annotation inside the lambda stating "Illegal forward 
reference".

When the line in question is simple, like above, then it's obvious what the 
problem is. But when the lambda contains:

{code}
root = server.repeatableRequest(() -> 
client.target(HOSTNAME).path("v1/market/open/coins").request().get());
{code}

How are users supposed to figure it out?

Expected behavior: Indicate which symbol represents a forward declaration.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@netbeans.apache.org
For additional commands, e-mail: commits-h...@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists

Reply via email to