Re: @Nonnull?

2021-06-24 Thread Owen Thomas
I commonly generate custom runtime exceptions for situations like this, but
it perhaps would be nice to have the compiler flag where this situation is
likely to happen too.

Perhaps it is a feature of a later release...

On Fri, 25 Jun 2021 at 15:30, Geertjan Wielenga <
geertjan.wiele...@googlemail.com> wrote:

> Yes, googled a bit for this, doubt it exists as a feature in JDK 16.
>
> Gj
>
> On Fri, 25 Jun 2021 at 07:23, Lars Bruun-Hansen 
> wrote:
>
>> What @Nonnull in Java ?  Have I missed some news about a new feature
>> in the JDK?
>> Various third party libraries implement some form of non-null
>> annotation and you will have to use one such library ... unless I
>> missed some new JDK feature.  :-)
>>
>>
>>
>> /Lars
>>
>>
>>
>>
>>
>> On Fri, Jun 25, 2021 at 5:40 AM Owen Thomas 
>> wrote:
>> >
>> > Ok, thanks Geertjan. Let me know what you find.
>> >
>> > On Fri, 25 Jun 2021 at 12:59, Geertjan Wielenga <
>> geertjan.wiele...@googlemail.com> wrote:
>> >>
>> >>
>> >> Maybe it doesn’t support it yet. Will try to find out.
>> >>
>> >> Gj
>> >>
>> >> On Fri, 25 Jun 2021 at 04:39, Owen Thomas 
>> wrote:
>> >>>
>> >>> I'm using NB 12.4 with JDK 16 and I have been reading a bit of the
>> annotations article from the newest Java Magazine. I thought I'd fiddle
>> with the @Nonnull annotation, so I put one in a method's declaration where
>> I thought it needed to go so I could indicate that a parameter needed a
>> non-null value:
>> >>>
>> >>> protected boolean checkEqual(@Nonnull SU subscription){
>> >>>
>> >>> Netbeans complains that it cannot find the symbol @Nonnull, and it
>> does not give me the option to add an import.
>> >>>
>> >>> Why does this happen?
>>
>


Re: @Nonnull?

2021-06-24 Thread Geertjan Wielenga
Yes, googled a bit for this, doubt it exists as a feature in JDK 16.

Gj

On Fri, 25 Jun 2021 at 07:23, Lars Bruun-Hansen 
wrote:

> What @Nonnull in Java ?  Have I missed some news about a new feature
> in the JDK?
> Various third party libraries implement some form of non-null
> annotation and you will have to use one such library ... unless I
> missed some new JDK feature.  :-)
>
>
>
> /Lars
>
>
>
>
>
> On Fri, Jun 25, 2021 at 5:40 AM Owen Thomas 
> wrote:
> >
> > Ok, thanks Geertjan. Let me know what you find.
> >
> > On Fri, 25 Jun 2021 at 12:59, Geertjan Wielenga <
> geertjan.wiele...@googlemail.com> wrote:
> >>
> >>
> >> Maybe it doesn’t support it yet. Will try to find out.
> >>
> >> Gj
> >>
> >> On Fri, 25 Jun 2021 at 04:39, Owen Thomas 
> wrote:
> >>>
> >>> I'm using NB 12.4 with JDK 16 and I have been reading a bit of the
> annotations article from the newest Java Magazine. I thought I'd fiddle
> with the @Nonnull annotation, so I put one in a method's declaration where
> I thought it needed to go so I could indicate that a parameter needed a
> non-null value:
> >>>
> >>> protected boolean checkEqual(@Nonnull SU subscription){
> >>>
> >>> Netbeans complains that it cannot find the symbol @Nonnull, and it
> does not give me the option to add an import.
> >>>
> >>> Why does this happen?
>


Re: @Nonnull?

2021-06-24 Thread Lars Bruun-Hansen
What @Nonnull in Java ?  Have I missed some news about a new feature
in the JDK?
Various third party libraries implement some form of non-null
annotation and you will have to use one such library ... unless I
missed some new JDK feature.  :-)



/Lars





On Fri, Jun 25, 2021 at 5:40 AM Owen Thomas  wrote:
>
> Ok, thanks Geertjan. Let me know what you find.
>
> On Fri, 25 Jun 2021 at 12:59, Geertjan Wielenga 
>  wrote:
>>
>>
>> Maybe it doesn’t support it yet. Will try to find out.
>>
>> Gj
>>
>> On Fri, 25 Jun 2021 at 04:39, Owen Thomas  wrote:
>>>
>>> I'm using NB 12.4 with JDK 16 and I have been reading a bit of the 
>>> annotations article from the newest Java Magazine. I thought I'd fiddle 
>>> with the @Nonnull annotation, so I put one in a method's declaration where 
>>> I thought it needed to go so I could indicate that a parameter needed a 
>>> non-null value:
>>>
>>> protected boolean checkEqual(@Nonnull SU subscription){
>>>
>>> Netbeans complains that it cannot find the symbol @Nonnull, and it does not 
>>> give me the option to add an import.
>>>
>>> Why does this happen?

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

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



Re: @Nonnull?

2021-06-24 Thread Owen Thomas
Ok, thanks Geertjan. Let me know what you find.

On Fri, 25 Jun 2021 at 12:59, Geertjan Wielenga <
geertjan.wiele...@googlemail.com> wrote:

>
> Maybe it doesn’t support it yet. Will try to find out.
>
> Gj
>
> On Fri, 25 Jun 2021 at 04:39, Owen Thomas 
> wrote:
>
>> I'm using NB 12.4 with JDK 16 and I have been reading a bit of the
>> annotations article from the newest Java Magazine. I thought I'd fiddle
>> with the @Nonnull annotation, so I put one in a method's declaration where
>> I thought it needed to go so I could indicate that a parameter needed a
>> non-null value:
>>
>> protected boolean checkEqual(@Nonnull SU subscription){
>>
>> Netbeans complains that it cannot find the symbol @Nonnull, and it does
>> not give me the option to add an import.
>>
>> Why does this happen?
>>
>


Re: @Nonnull?

2021-06-24 Thread Geertjan Wielenga
Maybe it doesn’t support it yet. Will try to find out.

Gj

On Fri, 25 Jun 2021 at 04:39, Owen Thomas 
wrote:

> I'm using NB 12.4 with JDK 16 and I have been reading a bit of the
> annotations article from the newest Java Magazine. I thought I'd fiddle
> with the @Nonnull annotation, so I put one in a method's declaration where
> I thought it needed to go so I could indicate that a parameter needed a
> non-null value:
>
> protected boolean checkEqual(@Nonnull SU subscription){
>
> Netbeans complains that it cannot find the symbol @Nonnull, and it does
> not give me the option to add an import.
>
> Why does this happen?
>


Re: FYI Netbeans is borked on JDK 17 / JDK 18

2021-06-24 Thread Geertjan Wielenga
Some, yes. Though this is where I sign off on this thread and look forward
to continuing this discussion on dev.

Gj

On Fri, 25 Jun 2021 at 02:27, Ty Young  wrote:

> Are the issues fixed in an in-dev release then?
>
>
> On 6/24/2021 4:06 AM, Geertjan Wielenga wrote:
>
>
> The place for this kind of discussion is not @users but @dev, where you’ll
> find a lot of work is already being fone for JDK 17 for the next release.
>
> Gj
>
> On Thu, 24 Jun 2021 at 12:18, Ty Young  wrote:
>
>> Just an FYI in case it isn't already known, Netbeans is borked on JDK 17
>> / JDK 18 in-dev builds. Usually Netbeans is really good with handling
>> in-dev releases but this time around things seemed to have went south.
>> The IDE can kinda sorta be fixed by installing the nb-javac plugin.
>>
>>
>> On Linux I was able to workaround the borked Netbeans state with
>> nb-javac which just causes preview features that are no longer in
>> preview to suddenly require the preview flag. Not a big deal for me. I
>> forgot the issues I ran into without it and I can't check since my Linux
>> distro is currently borked.
>>
>>
>> On Windows things are borked even with nb-javac. All package imports
>> claim that java.lang cannot be found in module or classpath despite
>> being able to clean, compile, and run all project just fine via Maven.
>> Editor code completion is also broken and probably more.
>>
>>
>> Without nb-javac(completely uninstalled) on Windows, Netbeans closes all
>> non-parent POM projects on startup and no right click menu comes up when
>> a right click is performed on a project. Might be more but I kinda gave
>> up at that point and reinstalled nb-javac.
>>
>>
>>
>>
>> -
>> To unsubscribe, e-mail: users-unsubscr...@netbeans.apache.org
>> For additional commands, e-mail: users-h...@netbeans.apache.org
>>
>> For further information about the NetBeans mailing lists, visit:
>> https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
>>
>>


@Nonnull?

2021-06-24 Thread Owen Thomas
I'm using NB 12.4 with JDK 16 and I have been reading a bit of the
annotations article from the newest Java Magazine. I thought I'd fiddle
with the @Nonnull annotation, so I put one in a method's declaration where
I thought it needed to go so I could indicate that a parameter needed a
non-null value:

protected boolean checkEqual(@Nonnull SU subscription){

Netbeans complains that it cannot find the symbol @Nonnull, and it does not
give me the option to add an import.

Why does this happen?


Re: FYI Netbeans is borked on JDK 17 / JDK 18

2021-06-24 Thread Ty Young

Are the issues fixed in an in-dev release then?


On 6/24/2021 4:06 AM, Geertjan Wielenga wrote:


The place for this kind of discussion is not @users but @dev, where 
you’ll find a lot of work is already being fone for JDK 17 for the 
next release.


Gj

On Thu, 24 Jun 2021 at 12:18, Ty Young > wrote:


Just an FYI in case it isn't already known, Netbeans is borked on
JDK 17
/ JDK 18 in-dev builds. Usually Netbeans is really good with handling
in-dev releases but this time around things seemed to have went
south.
The IDE can kinda sorta be fixed by installing the nb-javac plugin.


On Linux I was able to workaround the borked Netbeans state with
nb-javac which just causes preview features that are no longer in
preview to suddenly require the preview flag. Not a big deal for
me. I
forgot the issues I ran into without it and I can't check since my
Linux
distro is currently borked.


On Windows things are borked even with nb-javac. All package imports
claim that java.lang cannot be found in module or classpath despite
being able to clean, compile, and run all project just fine via
Maven.
Editor code completion is also broken and probably more.


Without nb-javac(completely uninstalled) on Windows, Netbeans
closes all
non-parent POM projects on startup and no right click menu comes
up when
a right click is performed on a project. Might be more but I kinda
gave
up at that point and reinstalled nb-javac.




-
To unsubscribe, e-mail: users-unsubscr...@netbeans.apache.org

For additional commands, e-mail: users-h...@netbeans.apache.org


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




Re: v12.4 Fonts wrong

2021-06-24 Thread Peter Nabbefeld

Hello,

I got problems with fonts on Linux, too, with NB 12.4 running on Java 16.

I'm not sure, if the following article is related:
https://docs.oracle.com/en/java/javase/16/intl/font-configuration-files.html

Especially, the following statement:
"For Linux, the Oracle JDK is moving away from providing custom font
configuration files on Linux platforms, as they are difficult to keep up
to date across distributions and versions."

Kind regards
Peter



Am 23.06.21 um 11:48 schrieb Lister Jonathan:

Not much help for you, but NB 12.4 fonts look OK for me without any
serious tweaking on Ubuntu 20.04.
This is FlatLaf Dark.
J

*From:* Bradley Willcott 
*Sent:* Wednesday, June 23, 2021 10:38 AM
*To:* NetBeans Mailing 
*Subject:* re: v12.4 Fonts wrong

Hi.

Some more info.

I went through all the standard themes and found that only the
*Nimbus* and *Dark Nimbus* themes provided an override to the small
italicised fonts.  However, as you can see in the attached screenshot,
even that did not fix the problem in the editor or the output windows.

Any thoughts/ideas on fixing this?

Thank you,
Brad.



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

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



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

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



Re: Java 16 Javadocs?

2021-06-24 Thread Emilian Bold
I was thinking of something online.

--emi

joi, 24 iun. 2021, 01:16 Andreas Reichel  a
scris:

> Greetings.
>
> On Wed, 2021-06-23 at 17:32 +0300, Emilian Bold wrote:
>
> It's amazing there's no 3rd party place for Javadocs considering there's
> now so many OpenJDK distros.
>
>
> I do not think that this is correct:
>
> are@ryzen ~ [SIGINT]> yay openjdk-doc
> 1 extra/openjdk-doc 16.0.1.u9-1 (11.0 MiB 260.9 MiB)
> OpenJDK Java 16 documentation
> ==> Packages to install (eg: 1 2 3, 1-3 or ^4)
>
>
> are@ryzen ~> yay -Ql openjdk-doc
> openjdk-doc /usr/
> openjdk-doc /usr/share/
> openjdk-doc /usr/share/doc/
> openjdk-doc /usr/share/doc/java-openjdk/
> openjdk-doc /usr/share/doc/java-openjdk/api/
> openjdk-doc /usr/share/doc/java-openjdk/api/allclasses-index.html
> openjdk-doc /usr/share/doc/java-openjdk/api/allpackages-index.html
> openjdk-doc /usr/share/doc/java-openjdk/api/constant-values.html
> openjdk-doc /usr/share/doc/java-openjdk/api/deprecated-list.html
> openjdk-doc /usr/share/doc/java-openjdk/api/element-list
> openjdk-doc /usr/share/doc/java-openjdk/api/help-doc.html
> openjdk-doc /usr/share/doc/java-openjdk/api/index-files/
> openjdk-doc /usr/share/doc/java-openjdk/api/index-files/index-1.html
>
>
> Best regards
> Amdreas
>


Re: FYI Netbeans is borked on JDK 17 / JDK 18

2021-06-24 Thread Geertjan Wielenga
fone/done

Gj

On Thu, 24 Jun 2021 at 13:06, Geertjan Wielenga <
geertjan.wiele...@googlemail.com> wrote:

>
> The place for this kind of discussion is not @users but @dev, where you’ll
> find a lot of work is already being fone for JDK 17 for the next release.
>
> Gj
>
> On Thu, 24 Jun 2021 at 12:18, Ty Young  wrote:
>
>> Just an FYI in case it isn't already known, Netbeans is borked on JDK 17
>> / JDK 18 in-dev builds. Usually Netbeans is really good with handling
>> in-dev releases but this time around things seemed to have went south.
>> The IDE can kinda sorta be fixed by installing the nb-javac plugin.
>>
>>
>> On Linux I was able to workaround the borked Netbeans state with
>> nb-javac which just causes preview features that are no longer in
>> preview to suddenly require the preview flag. Not a big deal for me. I
>> forgot the issues I ran into without it and I can't check since my Linux
>> distro is currently borked.
>>
>>
>> On Windows things are borked even with nb-javac. All package imports
>> claim that java.lang cannot be found in module or classpath despite
>> being able to clean, compile, and run all project just fine via Maven.
>> Editor code completion is also broken and probably more.
>>
>>
>> Without nb-javac(completely uninstalled) on Windows, Netbeans closes all
>> non-parent POM projects on startup and no right click menu comes up when
>> a right click is performed on a project. Might be more but I kinda gave
>> up at that point and reinstalled nb-javac.
>>
>>
>>
>>
>> -
>> To unsubscribe, e-mail: users-unsubscr...@netbeans.apache.org
>> For additional commands, e-mail: users-h...@netbeans.apache.org
>>
>> For further information about the NetBeans mailing lists, visit:
>> https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
>>
>>


Re: FYI Netbeans is borked on JDK 17 / JDK 18

2021-06-24 Thread Geertjan Wielenga
The place for this kind of discussion is not @users but @dev, where you’ll
find a lot of work is already being fone for JDK 17 for the next release.

Gj

On Thu, 24 Jun 2021 at 12:18, Ty Young  wrote:

> Just an FYI in case it isn't already known, Netbeans is borked on JDK 17
> / JDK 18 in-dev builds. Usually Netbeans is really good with handling
> in-dev releases but this time around things seemed to have went south.
> The IDE can kinda sorta be fixed by installing the nb-javac plugin.
>
>
> On Linux I was able to workaround the borked Netbeans state with
> nb-javac which just causes preview features that are no longer in
> preview to suddenly require the preview flag. Not a big deal for me. I
> forgot the issues I ran into without it and I can't check since my Linux
> distro is currently borked.
>
>
> On Windows things are borked even with nb-javac. All package imports
> claim that java.lang cannot be found in module or classpath despite
> being able to clean, compile, and run all project just fine via Maven.
> Editor code completion is also broken and probably more.
>
>
> Without nb-javac(completely uninstalled) on Windows, Netbeans closes all
> non-parent POM projects on startup and no right click menu comes up when
> a right click is performed on a project. Might be more but I kinda gave
> up at that point and reinstalled nb-javac.
>
>
>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@netbeans.apache.org
> For additional commands, e-mail: users-h...@netbeans.apache.org
>
> For further information about the NetBeans mailing lists, visit:
> https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
>
>


FYI Netbeans is borked on JDK 17 / JDK 18

2021-06-24 Thread Ty Young
Just an FYI in case it isn't already known, Netbeans is borked on JDK 17 
/ JDK 18 in-dev builds. Usually Netbeans is really good with handling 
in-dev releases but this time around things seemed to have went south. 
The IDE can kinda sorta be fixed by installing the nb-javac plugin.



On Linux I was able to workaround the borked Netbeans state with 
nb-javac which just causes preview features that are no longer in 
preview to suddenly require the preview flag. Not a big deal for me. I 
forgot the issues I ran into without it and I can't check since my Linux 
distro is currently borked.



On Windows things are borked even with nb-javac. All package imports 
claim that java.lang cannot be found in module or classpath despite 
being able to clean, compile, and run all project just fine via Maven. 
Editor code completion is also broken and probably more.



Without nb-javac(completely uninstalled) on Windows, Netbeans closes all 
non-parent POM projects on startup and no right click menu comes up when 
a right click is performed on a project. Might be more but I kinda gave 
up at that point and reinstalled nb-javac.





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

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