You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@netbeans.apache.org by "Peter Michael Kirkham (Jira)" <ji...@apache.org> on 2021/05/05 05:48:00 UTC

[jira] [Created] (NETBEANS-5659) Incorrect highlighting of missing class in JUnit test

Peter Michael Kirkham created NETBEANS-5659:
-----------------------------------------------

             Summary: Incorrect highlighting of missing class in JUnit test
                 Key: NETBEANS-5659
                 URL: https://issues.apache.org/jira/browse/NETBEANS-5659
             Project: NetBeans
          Issue Type: Bug
          Components: editor - Hints &amp; Annotations
    Affects Versions: 12.3
         Environment: OS: Windows 10 / 64 bit

JDK version: AdoptOpenJDK 11.0.10

NB version: 12.3
            Reporter: Peter Michael Kirkham
         Attachments: 2021-05-05 Netbeans 12.3 Incorrect missing class highlight - IDE Log.txt, 2021-05-05 Netbeans 12.3 Incorrect missing class highlight - UI Log.txt

When editing Java test file syntax highlighting appears to show an error for the class being tested. e.g. for class MyClass, the test MyClassTest will highlight all instances of MyClass as not found. Code completion cannot find the class but the test will compile and run. Appears to be a syntax highlighting and code completion issue only.

Easy workaround is to refactor the apparently missing class without renaming the test, then refactor back to the original name and recompile. This appears to trigger something that means all the highlighting vanishes.



--
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