You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@netbeans.apache.org by Brad Walker <bw...@musings.com> on 2019/07/15 21:43:51 UTC

? about project properties..

We have 417 project.properties files in the git repo..

These seem to be part of a Netbeans project for the various different
components.

I've noticed the project.properties file contains the following:

javac.source=1.6

Should we not think about maybe bumping that to 1.8?

-brad w.

Re: ? about project properties..

Posted by Tim Boudreau <ni...@gmail.com>.
"Source level 1.6" is not technical debt. That is my entire point.

If you enjoy it and can do it without breaking things, and find it
educational, go for it. But consider if there's something more impactful
you could spend that time on.

-Tim


On Wed, Jul 17, 2019 at 2:05 PM Brad Walker <bw...@musings.com> wrote:

> I'm not sure how to respond.. But, I'll try anyways.. 8-)
>
> First a little bit of background about me. I design software in the
> embedded space. So my interest in using NetBeans revolves around the C/C++
> plugin module. I don't use Java in my professional life but do like using
> it.  It's also interesting to me from a language point of view. So, I am
> not qualified to make feature changes or bug fixes, unless the bugs are
> really simple ones. Plus, working in the Java space not something that
> really gets me excited. But, that's okay because I'm trying to contribute
> in my own personal way.
>
> For me, I find fixing the code warnings are interesting. There is a lot of
> technical debt we carry along since the project is big and has a history.
> It's something I can contribute to and hopefully it helps others. From a
> technical point of view, the warnings are the compilers way of saying to
> the user, this code is problematic. It's certainly okay to ignore it but
> there really is something here that one should address. Also, fixing these
> warning is a way for me to look at the code and learn how all the pieces
> fit together. Not to mention, I really do become a better Java user as a
> result of me having to give some thought to what I'm trying to do.
> Recently, I submitted a change dealing with the Class raw type. I spent a
> lot of time looking at the Java Language Spec as well as research about how
> things should work. So that makes me better with the language.
>
> Now, onto the details about the change to the project.properties file.
>
> There are a couple of places where I did make a change to the code to make
> it use generics. Once I did this, the code stopped compiling because the
> compiler had been told to use 1.6 version of code. Yet, all i was doing was
> using the diamond operator, which is a Java version 1.7 feature.  So now
> the code is effectively tied to version 1.6 of the compiler. That doesn't
> seem proper to me. And that is the reason I posted this simple request to
> find out what should be done. In my specific case, I just simply skipped
> the code and did nothing. So I'm not really doing this for aesthetics. But,
> did actually have a technical reason for asking.
>
> Hopefully this more clearly explains what I'm trying to accomplish and why.
>
> -brad w.
>
>
> On Tue, Jul 16, 2019 at 8:18 PM Tim Boudreau <ni...@gmail.com> wrote:
>
> > If you feel like fixing all the build warnings due to code not having
> > generics and the like, sure! :-)
> >
> > This is one of those "if it ain't broke, don't fix it" things. There is
> > nothing wrong with source level 1.6 for infrequently modified code that's
> > stable. If it were undergoing a major rewrite, I would expect the author
> to
> > do that sort of thing. But doing it for the sake of aesthetics? Far
> better
> > to spend time on actual features and bug fixes than cosmetic changes that
> > don't affect semantics. It would be an utter waste of time, with the real
> > risk that accidental semantic changes will be introduced that do break
> > things. Don't do it unless the reward is worth the risk and the time that
> > could be spent doing real work.
> >
> > -Tim
> >
> > On Mon, Jul 15, 2019 at 5:44 PM Brad Walker <bw...@musings.com> wrote:
> >
> > > We have 417 project.properties files in the git repo..
> > >
> > > These seem to be part of a Netbeans project for the various different
> > > components.
> > >
> > > I've noticed the project.properties file contains the following:
> > >
> > > javac.source=1.6
> > >
> > > Should we not think about maybe bumping that to 1.8?
> > >
> > > -brad w.
> > >
> > --
> > http://timboudreau.com
> >
>
-- 
http://timboudreau.com

Re: ? about project properties..

Posted by Brad Walker <bw...@musings.com>.
I'm not sure how to respond.. But, I'll try anyways.. 8-)

First a little bit of background about me. I design software in the
embedded space. So my interest in using NetBeans revolves around the C/C++
plugin module. I don't use Java in my professional life but do like using
it.  It's also interesting to me from a language point of view. So, I am
not qualified to make feature changes or bug fixes, unless the bugs are
really simple ones. Plus, working in the Java space not something that
really gets me excited. But, that's okay because I'm trying to contribute
in my own personal way.

For me, I find fixing the code warnings are interesting. There is a lot of
technical debt we carry along since the project is big and has a history.
It's something I can contribute to and hopefully it helps others. From a
technical point of view, the warnings are the compilers way of saying to
the user, this code is problematic. It's certainly okay to ignore it but
there really is something here that one should address. Also, fixing these
warning is a way for me to look at the code and learn how all the pieces
fit together. Not to mention, I really do become a better Java user as a
result of me having to give some thought to what I'm trying to do.
Recently, I submitted a change dealing with the Class raw type. I spent a
lot of time looking at the Java Language Spec as well as research about how
things should work. So that makes me better with the language.

Now, onto the details about the change to the project.properties file.

There are a couple of places where I did make a change to the code to make
it use generics. Once I did this, the code stopped compiling because the
compiler had been told to use 1.6 version of code. Yet, all i was doing was
using the diamond operator, which is a Java version 1.7 feature.  So now
the code is effectively tied to version 1.6 of the compiler. That doesn't
seem proper to me. And that is the reason I posted this simple request to
find out what should be done. In my specific case, I just simply skipped
the code and did nothing. So I'm not really doing this for aesthetics. But,
did actually have a technical reason for asking.

Hopefully this more clearly explains what I'm trying to accomplish and why.

-brad w.


On Tue, Jul 16, 2019 at 8:18 PM Tim Boudreau <ni...@gmail.com> wrote:

> If you feel like fixing all the build warnings due to code not having
> generics and the like, sure! :-)
>
> This is one of those "if it ain't broke, don't fix it" things. There is
> nothing wrong with source level 1.6 for infrequently modified code that's
> stable. If it were undergoing a major rewrite, I would expect the author to
> do that sort of thing. But doing it for the sake of aesthetics? Far better
> to spend time on actual features and bug fixes than cosmetic changes that
> don't affect semantics. It would be an utter waste of time, with the real
> risk that accidental semantic changes will be introduced that do break
> things. Don't do it unless the reward is worth the risk and the time that
> could be spent doing real work.
>
> -Tim
>
> On Mon, Jul 15, 2019 at 5:44 PM Brad Walker <bw...@musings.com> wrote:
>
> > We have 417 project.properties files in the git repo..
> >
> > These seem to be part of a Netbeans project for the various different
> > components.
> >
> > I've noticed the project.properties file contains the following:
> >
> > javac.source=1.6
> >
> > Should we not think about maybe bumping that to 1.8?
> >
> > -brad w.
> >
> --
> http://timboudreau.com
>

Re: Re: ? about project properties..

Posted by Eric Bresie <eb...@gmail.com>.
Not sure if this (as of Java 9) may impact things at some point...

http://openjdk.java.net/jeps/182

Eric Bresie
Ebresie@gmail.com
> On July 17, 2019 at 3:43:47 AM CDT, Jan Lahoda <la...@gmail.com> wrote:
> FWIW, I believe there are some corner cases where type inference works differently under source level 8 compared to source level 7. So my personal approach so far was to upgrade source level for modules I was modifying and where I want to use lambdas, as I could more easily see the potential issues while working on that module.
>
> Jan
>
> 17. července 2019 4:18:37 SELČ, Tim Boudreau <ni...@gmail.com> napsal:
> > If you feel like fixing all the build warnings due to code not having
> > generics and the like, sure! :-)
> >
> > This is one of those "if it ain't broke, don't fix it" things. There is
> > nothing wrong with source level 1.6 for infrequently modified code
> > that's
> > stable. If it were undergoing a major rewrite, I would expect the
> > author to
> > do that sort of thing. But doing it for the sake of aesthetics? Far
> > better
> > to spend time on actual features and bug fixes than cosmetic changes
> > that
> > don't affect semantics. It would be an utter waste of time, with the
> > real
> > risk that accidental semantic changes will be introduced that do break
> > things. Don't do it unless the reward is worth the risk and the time
> > that
> > could be spent doing real work.
> >
> > -Tim
> >
> > On Mon, Jul 15, 2019 at 5:44 PM Brad Walker <bw...@musings.com>
> > wrote:
> >
> > > We have 417 project.properties files in the git repo..
> > >
> > > These seem to be part of a Netbeans project for the various different
> > > components.
> > >
> > > I've noticed the project.properties file contains the following:
> > >
> > > javac.source=1.6
> > >
> > > Should we not think about maybe bumping that to 1.8?
> > >
> > > -brad w.
> > >
> > --
> > http://timboudreau.com
>
> --
> Odesláno z mého telefonu s Androidem pomocí pošty K-9 Mail. Omluvte prosím moji stručnost.

Re: ? about project properties..

Posted by Jan Lahoda <la...@gmail.com>.
FWIW, I believe there are some corner cases where type inference works differently under source level 8 compared to source level 7. So my personal approach so far was to upgrade source level for modules I was modifying and where I want to use lambdas, as I could more easily see the potential issues while working on that module.

Jan

17. července 2019 4:18:37 SELČ, Tim Boudreau <ni...@gmail.com> napsal:
>If you feel like fixing all the build warnings due to code not having
>generics and the like, sure! :-)
>
>This is one of those "if it ain't broke, don't fix it" things. There is
>nothing wrong with source level 1.6 for infrequently modified code
>that's
>stable. If it were undergoing a major rewrite, I would expect the
>author to
>do that sort of thing. But doing it for the sake of aesthetics? Far
>better
>to spend time on actual features and bug fixes than cosmetic changes
>that
>don't affect semantics. It would be an utter waste of time, with the
>real
>risk that accidental semantic changes will be introduced that do break
>things. Don't do it unless the reward is worth the risk and the time
>that
>could be spent doing real work.
>
>-Tim
>
>On Mon, Jul 15, 2019 at 5:44 PM Brad Walker <bw...@musings.com>
>wrote:
>
>> We have 417 project.properties files in the git repo..
>>
>> These seem to be part of a Netbeans project for the various different
>> components.
>>
>> I've noticed the project.properties file contains the following:
>>
>> javac.source=1.6
>>
>> Should we not think about maybe bumping that to 1.8?
>>
>> -brad w.
>>
>-- 
>http://timboudreau.com

-- 
Odesláno z mého telefonu s Androidem pomocí pošty K-9 Mail. Omluvte prosím moji stručnost.

Re: ? about project properties..

Posted by Tim Boudreau <ni...@gmail.com>.
If you feel like fixing all the build warnings due to code not having
generics and the like, sure! :-)

This is one of those "if it ain't broke, don't fix it" things. There is
nothing wrong with source level 1.6 for infrequently modified code that's
stable. If it were undergoing a major rewrite, I would expect the author to
do that sort of thing. But doing it for the sake of aesthetics? Far better
to spend time on actual features and bug fixes than cosmetic changes that
don't affect semantics. It would be an utter waste of time, with the real
risk that accidental semantic changes will be introduced that do break
things. Don't do it unless the reward is worth the risk and the time that
could be spent doing real work.

-Tim

On Mon, Jul 15, 2019 at 5:44 PM Brad Walker <bw...@musings.com> wrote:

> We have 417 project.properties files in the git repo..
>
> These seem to be part of a Netbeans project for the various different
> components.
>
> I've noticed the project.properties file contains the following:
>
> javac.source=1.6
>
> Should we not think about maybe bumping that to 1.8?
>
> -brad w.
>
-- 
http://timboudreau.com