Re: Nb 8.2RC "The type of DialogDescriptor .... is erroneous" - and a solution

Dmitry Avtonomov <[email protected]>
Newsgroups gmane.comp.java.netbeans.modules.openide.devel
Message-ID <CAMMjtf-RxhwcHRLqOPJanpJwiDHo1+J3Cwmb6k-nzwQTr157Kg@mail.gmail.com>
I guess this was a thing since 8.1?

On Sep 20, 2016 22:33, "bruehlicke" <[email protected]> wrote:

> After updating to 8.2RC and porting an older module I got the error in
> NetBeans that "The type of DialogDescriptor ... is erroneous"
>
> I see numerous similar issues with older versions (https://netbeans.org/
> bugzilla/show_bug.cgi?id=252729) or (https://netbeans.org/
> bugzilla/show_bug.cgi?id=244749). None of the suggested solution was the
> core of the issue.
>
> I have attached a small freshly made Netbeans Platform app with one module
> called "module" which as a "MyTopComponent" which opens a Dialog (line 94).
>
> Solution/Fix:  Adding "Utilities API" to the dependencies.
>
> Question:  I see this is done automatically for a new module created but
> this is a port and how would a humble programmer ever find that he/she
> needs to add Utilities API ? I was just lucky that another moduel using
> similar code had this added and did not have the error, hence I found out.
>
> This is not a show stopper at all, but if anyone can explain why and what
> this NetBeans error means that would be great.
>
> Bests and thanx for the 8.2RC ! Looking good so far.
>
>
>
>
> Attachments:
> http://forums.netbeans.org//files/erroneous_141.zip
>
>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.