You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@netbeans.apache.org by "Josh Lederman (Jira)" <ji...@apache.org> on 2020/06/05 16:26:00 UTC

[jira] [Created] (NETBEANS-4412) Netbeans Maven project doesn't mark as error use of nonexistant class

Josh Lederman created NETBEANS-4412:
---------------------------------------

             Summary: Netbeans Maven project doesn't mark as error use of nonexistant class
                 Key: NETBEANS-4412
                 URL: https://issues.apache.org/jira/browse/NETBEANS-4412
             Project: NetBeans
          Issue Type: Bug
    Affects Versions: 11.3
         Environment: Ubuntu 18.04.4
            Reporter: Josh Lederman
         Attachments: FirstClass.java, SecondClass.java

Running through the following procedure:

Create a new Maven Project (New Project -> Java with Maven -> Java Application) - I use user.xmpl as my package name.

Create two classes in that project, with the two attached java code files: FirstClass.java and SecondClass.java

There is no error message on the BadClass badVariable line, nor on any other line in the SecondClass file (BadClass is not defined). The file as a whole is marked as having an error, in the tab and in the Project tree.

The error _is_ shown (as expected) with any of the following changes:
 * Switch the order of the two definitions within SecondClass
 * Delete the first definition (FirstClass) in SecondClass
 * Delete the constructor of FirstClass
 * Delete the one line in FirstClass (object.function)
 * Remove the lambda expression from the line in FirstClass
 * Use a Java Ant project instead of a Maven one

There is, of course, an error on the object.function line, but there is no change in the issue if that error is fixed by appropriately defining object and function.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

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

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