Ernie Rael created NETBEANS-3665:
------------------------------------

             Summary: module using BaseDocument compile fails: "cannot access 
LineDocument"
                 Key: NETBEANS-3665
                 URL: https://issues.apache.org/jira/browse/NETBEANS-3665
             Project: NetBeans
          Issue Type: Bug
          Components: editor - Other
         Environment: 11.2u1
            Reporter: Ernie Rael


I don't know enough about how intermodule dependencies work, or I'd try to fix 
this...
In the code below, when I enter "BaseDocument" I request 
"search module dependency for BaseDocument"; it succeeds and adds a dependency 
on org.netbeans.modules.editor.lib. But it won't compile. there still needs to 
be a dependency on org.netbeans.modules.editor.document. I seem to recall that 
this dependency should have been added automatically. The interface 
LineDocument is implemented by BaseDocument. BTW, LineDocument doesn't show up 
in the docs.


import org.netbeans.editor.BaseDocument;
public class NewClass {
    void foo(BaseDocument doc) {
        doc.runAtomicAsUser(() -> System.err.println(""));
    }}
Error: class file for org.netbeans.api.editor.document.LineDocument not found



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

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