You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@netbeans.apache.org by Eric Bresie <eb...@gmail.com> on 2021/10/09 12:58:46 UTC
Re: [Java Hint Usage] Release Apache Netbeans Standalone Java Hints
Tool 12.5
Always welcome to have guidance with java development. Good job…
I found the netbeans jackpot site (https://netbeans.apache.org/jackpot/) to
be a good starting point for additional information on this. But I had
follow up question w…what is the use case for jackpot. Is it intended to be
(1) part of netbeans (if so why is it being released separate from netbeans
and/or nb-javac module),
(2) plugin for netbeans,
(3) a component of netbeans platform usable elsewhere (i.e. in other
applications - VSCode?), or
(4) a build add on (i.e. mvn) to run during compilation and/or build time
to provide hints going forward?
(5) all of the above
Assume this also allows user defined rules to be added, but not sure if
that is for specific user environments (where they added new rules) or is
the intent new rules are added and integrated back into jackpot rule set?
Eric
On Sat, Oct 9, 2021 at 1:47 AM Jan Lahoda <la...@gmail.com> wrote:
> Thanks everyone for checks/reviews and votes!
>
> The vote passes with 3 +1 votes and no 0 or -1 votes:
> Matthias Bläsing
> Eric Barboni
> Jaroslav Tulach
>
> I'll proceed with publishing the release.
>
> Thanks!
>
> Jan
>
> On Wed, Oct 6, 2021 at 2:02 PM Jaroslav Tulach <ja...@gmail.com>
> wrote:
>
> > +1 (binding)
> >
> > Downloaded, verified signature and sha and tested the staged
> > `tool-12.5.jar` in my project:
> > https://github.com/apache/netbeans/pull/3206
> > -jt <https://github.com/apache/netbeans/pull/3206-jt>
> >
> >
> > ne 3. 10. 2021 v 11:13 odesílatel Jan Lahoda <la...@gmail.com> napsal:
> >
> > > Dear all,
> > >
> > > I'd like to release the standalone Java Hints tool ("jackpot") based on
> > > Apache NetBeans 12.5.
> > >
> > > The release is here:
> > >
> > >
> >
> https://dist.apache.org/repos/dist/dev/netbeans/netbeans-jackpot/netbeans-jackpot-12.5-vc1/apache-netbeans-jackpot-12.5.zip
> > >
> > > Signature file:
> > >
> > >
> >
> https://dist.apache.org/repos/dist/dev/netbeans/netbeans-jackpot/netbeans-jackpot-12.5-vc1/apache-netbeans-jackpot-12.5.zip.asc
> > >
> > > SHA512:
> > >
> > >
> >
> 1ff544f9c24f79e2835c43303d826b6e1fcee700fc14772141adf9302a8a74299ec0c33a29476964323a637572b62619f21453fa6ffcdcee34aac4440103362d
> > > ./apache-netbeans-jackpot-12.5.zip
> > >
> > > KEYS file:
> > >
> > > https://dist.apache.org/repos/dist/release/netbeans/KEYS
> > >
> > > Apache NetBeans Jackpot 3.0 Git Repo tag:
> > >
> > >
> >
> https://github.com/apache/netbeans-jackpot30/releases/tag/netbeans-jackpot-12.5-vc1
> > >
> > > Convenience binaries:
> > > -built standalone tool:
> > >
> > >
> >
> https://dist.apache.org/repos/dist/dev/netbeans/netbeans-jackpot/netbeans-jackpot-12.5-vc1/apache-netbeans-jackpot-12.5-bin.zip
> > >
> > > Its signature file:
> > >
> > >
> >
> https://dist.apache.org/repos/dist/dev/netbeans/netbeans-jackpot/netbeans-jackpot-12.5-vc1/apache-netbeans-jackpot-12.5-bin.zip.asc
> > >
> > > and its SHA512:
> > >
> > >
> >
> 4905d2c044cd0251854046d042586ffb7ea092d09a495a8b605a640e9c4f45d45b7a60026af4a6ef9b26ffe054d676d8768d106d5e62b119ad9f9546f56c9551
> > > ./apache-netbeans-jackpot-12.5-bin.zip
> > >
> > > -there is also a plugin staging Maven repository here:
> > >
> >
> https://repository.apache.org/content/repositories/orgapachenetbeans-1091/
> > >
> > > This vote is going to be open at least 72 hours, please vote with +1,
> 0,
> > > and -1 as usual.
> > >
> > > Thanks for any feedback!
> > >
> > > Jan
> > >
> >
>
--
Eric Bresie
ebresie@gmail.com
Re: [Java Hint Usage] Release Apache Netbeans Standalone Java Hints
Tool 12.5
Posted by Michael Bien <mb...@gmail.com>.
sure, tools -> options -> editor -> hits -> jdk migration support
there are some complementary rules in the jackpot-inspections project,
e.g in the Deprecations.hint file.
if you want an example for a non trivial backwards migration:
https://github.com/oracle/nb-javac/pull/12/files#diff-e049ed3969da8adf6c1d4fc54948567c0bb0cee55d8f6d8f010a02a817a3e545
-michael
On 10.10.21 16:30, Eric Bresie wrote:
> That does help. Thanks Michael.
>
> Are there hints for migrating between java versions? Or is that in
> baseline Netbeans or nb-javac context?
>
> Eric Bresie
> ebresie@gmail.com
>
>
> On Sat, Oct 9, 2021 at 9:25 AM Michael Bien <mb...@gmail.com> wrote:
>
> jackpot is "just" a library which happens to be the refactoring
> engine
> of NetBeans.
>
> It can be used in NB, outside NB and certainly also via the language
> server protocol.
> It can inspect code and print warnings. But it can also inspect
> code and
> suggest refactorings since it is a tool built on top of javac.
>
>
> The result of this all can be a simple warning in your shell/of your
> build, a light bulb in NetBeans or a generated patch from a
> command line
> tool.
>
> here an old blog entry young me wrote over a decade ago (using
> jackpot
> via CLI):
> https://mbien.dev/blog/entry/you_have_won_the_jackpot
>
> readme explains where to put the hint files if used in NB:
> https://github.com/mbien/jackpot-inspections
>
> sidenote: the code inspections shipped with NB don't really use hint
> files, the rules are put in annotations but that is a minor detail.
>
> hope that helps,
> michael
>
>
> On 09.10.21 14:58, Eric Bresie wrote:
> > Always welcome to have guidance with java development. Good job…
> >
> > I found the netbeans jackpot site
> (https://netbeans.apache.org/jackpot/) to
> > be a good starting point for additional information on this. But
> I had
> > follow up question w…what is the use case for jackpot. Is it
> intended to be
> >
> > (1) part of netbeans (if so why is it being released separate
> from netbeans
> > and/or nb-javac module),
> > (2) plugin for netbeans,
> > (3) a component of netbeans platform usable elsewhere (i.e. in other
> > applications - VSCode?), or
> > (4) a build add on (i.e. mvn) to run during compilation and/or
> build time
> > to provide hints going forward?
> > (5) all of the above
> >
> > Assume this also allows user defined rules to be added, but not
> sure if
> > that is for specific user environments (where they added new
> rules) or is
> > the intent new rules are added and integrated back into jackpot
> rule set?
> >
> > Eric
> >
> > On Sat, Oct 9, 2021 at 1:47 AM Jan Lahoda <la...@gmail.com> wrote:
> >
> >> Thanks everyone for checks/reviews and votes!
> >>
> >> The vote passes with 3 +1 votes and no 0 or -1 votes:
> >> Matthias Bläsing
> >> Eric Barboni
> >> Jaroslav Tulach
> >>
> >> I'll proceed with publishing the release.
> >>
> >> Thanks!
> >>
> >> Jan
> >>
> >> On Wed, Oct 6, 2021 at 2:02 PM Jaroslav Tulach
> <ja...@gmail.com>
> >> wrote:
> >>
> >>> +1 (binding)
> >>>
> >>> Downloaded, verified signature and sha and tested the staged
> >>> `tool-12.5.jar` in my project:
> >>> https://github.com/apache/netbeans/pull/3206
> >>> -jt <https://github.com/apache/netbeans/pull/3206-jt>
> >>>
> >>>
> >>> ne 3. 10. 2021 v 11:13 odesílatel Jan Lahoda
> <la...@gmail.com> napsal:
> >>>
> >>>> Dear all,
> >>>>
> >>>> I'd like to release the standalone Java Hints tool
> ("jackpot") based on
> >>>> Apache NetBeans 12.5.
> >>>>
> >>>> The release is here:
> >>>>
> >>>>
> >>
> https://dist.apache.org/repos/dist/dev/netbeans/netbeans-jackpot/netbeans-jackpot-12.5-vc1/apache-netbeans-jackpot-12.5.zip
> >>>> Signature file:
> >>>>
> >>>>
> >>
> https://dist.apache.org/repos/dist/dev/netbeans/netbeans-jackpot/netbeans-jackpot-12.5-vc1/apache-netbeans-jackpot-12.5.zip.asc
> >>>> SHA512:
> >>>>
> >>>>
> >>
> 1ff544f9c24f79e2835c43303d826b6e1fcee700fc14772141adf9302a8a74299ec0c33a29476964323a637572b62619f21453fa6ffcdcee34aac4440103362d
> >>>> ./apache-netbeans-jackpot-12.5.zip
> >>>>
> >>>> KEYS file:
> >>>>
> >>>> https://dist.apache.org/repos/dist/release/netbeans/KEYS
> >>>>
> >>>> Apache NetBeans Jackpot 3.0 Git Repo tag:
> >>>>
> >>>>
> >>
> https://github.com/apache/netbeans-jackpot30/releases/tag/netbeans-jackpot-12.5-vc1
> >>>> Convenience binaries:
> >>>> -built standalone tool:
> >>>>
> >>>>
> >>
> https://dist.apache.org/repos/dist/dev/netbeans/netbeans-jackpot/netbeans-jackpot-12.5-vc1/apache-netbeans-jackpot-12.5-bin.zip
> >>>> Its signature file:
> >>>>
> >>>>
> >>
> https://dist.apache.org/repos/dist/dev/netbeans/netbeans-jackpot/netbeans-jackpot-12.5-vc1/apache-netbeans-jackpot-12.5-bin.zip.asc
> >>>> and its SHA512:
> >>>>
> >>>>
> >>
> 4905d2c044cd0251854046d042586ffb7ea092d09a495a8b605a640e9c4f45d45b7a60026af4a6ef9b26ffe054d676d8768d106d5e62b119ad9f9546f56c9551
> >>>> ./apache-netbeans-jackpot-12.5-bin.zip
> >>>>
> >>>> -there is also a plugin staging Maven repository here:
> >>>>
> >>
> https://repository.apache.org/content/repositories/orgapachenetbeans-1091/
> >>>> This vote is going to be open at least 72 hours, please vote
> with +1,
> >> 0,
> >>>> and -1 as usual.
> >>>>
> >>>> Thanks for any feedback!
> >>>>
> >>>> Jan
> >>>>
>
Re: [Java Hint Usage] Release Apache Netbeans Standalone Java Hints
Tool 12.5
Posted by Eric Bresie <eb...@gmail.com>.
That does help. Thanks Michael.
Are there hints for migrating between java versions? Or is that in
baseline Netbeans or nb-javac context?
Eric Bresie
ebresie@gmail.com
On Sat, Oct 9, 2021 at 9:25 AM Michael Bien <mb...@gmail.com> wrote:
> jackpot is "just" a library which happens to be the refactoring engine
> of NetBeans.
>
> It can be used in NB, outside NB and certainly also via the language
> server protocol.
> It can inspect code and print warnings. But it can also inspect code and
> suggest refactorings since it is a tool built on top of javac.
>
>
> The result of this all can be a simple warning in your shell/of your
> build, a light bulb in NetBeans or a generated patch from a command line
> tool.
>
> here an old blog entry young me wrote over a decade ago (using jackpot
> via CLI):
> https://mbien.dev/blog/entry/you_have_won_the_jackpot
>
> readme explains where to put the hint files if used in NB:
> https://github.com/mbien/jackpot-inspections
>
> sidenote: the code inspections shipped with NB don't really use hint
> files, the rules are put in annotations but that is a minor detail.
>
> hope that helps,
> michael
>
>
> On 09.10.21 14:58, Eric Bresie wrote:
> > Always welcome to have guidance with java development. Good job…
> >
> > I found the netbeans jackpot site (https://netbeans.apache.org/jackpot/)
> to
> > be a good starting point for additional information on this. But I had
> > follow up question w…what is the use case for jackpot. Is it intended
> to be
> >
> > (1) part of netbeans (if so why is it being released separate from
> netbeans
> > and/or nb-javac module),
> > (2) plugin for netbeans,
> > (3) a component of netbeans platform usable elsewhere (i.e. in other
> > applications - VSCode?), or
> > (4) a build add on (i.e. mvn) to run during compilation and/or build time
> > to provide hints going forward?
> > (5) all of the above
> >
> > Assume this also allows user defined rules to be added, but not sure if
> > that is for specific user environments (where they added new rules) or is
> > the intent new rules are added and integrated back into jackpot rule set?
> >
> > Eric
> >
> > On Sat, Oct 9, 2021 at 1:47 AM Jan Lahoda <la...@gmail.com> wrote:
> >
> >> Thanks everyone for checks/reviews and votes!
> >>
> >> The vote passes with 3 +1 votes and no 0 or -1 votes:
> >> Matthias Bläsing
> >> Eric Barboni
> >> Jaroslav Tulach
> >>
> >> I'll proceed with publishing the release.
> >>
> >> Thanks!
> >>
> >> Jan
> >>
> >> On Wed, Oct 6, 2021 at 2:02 PM Jaroslav Tulach <
> jaroslav.tulach@gmail.com>
> >> wrote:
> >>
> >>> +1 (binding)
> >>>
> >>> Downloaded, verified signature and sha and tested the staged
> >>> `tool-12.5.jar` in my project:
> >>> https://github.com/apache/netbeans/pull/3206
> >>> -jt <https://github.com/apache/netbeans/pull/3206-jt>
> >>>
> >>>
> >>> ne 3. 10. 2021 v 11:13 odesílatel Jan Lahoda <la...@gmail.com>
> napsal:
> >>>
> >>>> Dear all,
> >>>>
> >>>> I'd like to release the standalone Java Hints tool ("jackpot") based
> on
> >>>> Apache NetBeans 12.5.
> >>>>
> >>>> The release is here:
> >>>>
> >>>>
> >>
> https://dist.apache.org/repos/dist/dev/netbeans/netbeans-jackpot/netbeans-jackpot-12.5-vc1/apache-netbeans-jackpot-12.5.zip
> >>>> Signature file:
> >>>>
> >>>>
> >>
> https://dist.apache.org/repos/dist/dev/netbeans/netbeans-jackpot/netbeans-jackpot-12.5-vc1/apache-netbeans-jackpot-12.5.zip.asc
> >>>> SHA512:
> >>>>
> >>>>
> >>
> 1ff544f9c24f79e2835c43303d826b6e1fcee700fc14772141adf9302a8a74299ec0c33a29476964323a637572b62619f21453fa6ffcdcee34aac4440103362d
> >>>> ./apache-netbeans-jackpot-12.5.zip
> >>>>
> >>>> KEYS file:
> >>>>
> >>>> https://dist.apache.org/repos/dist/release/netbeans/KEYS
> >>>>
> >>>> Apache NetBeans Jackpot 3.0 Git Repo tag:
> >>>>
> >>>>
> >>
> https://github.com/apache/netbeans-jackpot30/releases/tag/netbeans-jackpot-12.5-vc1
> >>>> Convenience binaries:
> >>>> -built standalone tool:
> >>>>
> >>>>
> >>
> https://dist.apache.org/repos/dist/dev/netbeans/netbeans-jackpot/netbeans-jackpot-12.5-vc1/apache-netbeans-jackpot-12.5-bin.zip
> >>>> Its signature file:
> >>>>
> >>>>
> >>
> https://dist.apache.org/repos/dist/dev/netbeans/netbeans-jackpot/netbeans-jackpot-12.5-vc1/apache-netbeans-jackpot-12.5-bin.zip.asc
> >>>> and its SHA512:
> >>>>
> >>>>
> >>
> 4905d2c044cd0251854046d042586ffb7ea092d09a495a8b605a640e9c4f45d45b7a60026af4a6ef9b26ffe054d676d8768d106d5e62b119ad9f9546f56c9551
> >>>> ./apache-netbeans-jackpot-12.5-bin.zip
> >>>>
> >>>> -there is also a plugin staging Maven repository here:
> >>>>
> >>
> https://repository.apache.org/content/repositories/orgapachenetbeans-1091/
> >>>> This vote is going to be open at least 72 hours, please vote with +1,
> >> 0,
> >>>> and -1 as usual.
> >>>>
> >>>> Thanks for any feedback!
> >>>>
> >>>> Jan
> >>>>
>
>
Re: [Java Hint Usage] Release Apache Netbeans Standalone Java Hints
Tool 12.5
Posted by Michael Bien <mb...@gmail.com>.
jackpot is "just" a library which happens to be the refactoring engine
of NetBeans.
It can be used in NB, outside NB and certainly also via the language
server protocol.
It can inspect code and print warnings. But it can also inspect code and
suggest refactorings since it is a tool built on top of javac.
The result of this all can be a simple warning in your shell/of your
build, a light bulb in NetBeans or a generated patch from a command line
tool.
here an old blog entry young me wrote over a decade ago (using jackpot
via CLI):
https://mbien.dev/blog/entry/you_have_won_the_jackpot
readme explains where to put the hint files if used in NB:
https://github.com/mbien/jackpot-inspections
sidenote: the code inspections shipped with NB don't really use hint
files, the rules are put in annotations but that is a minor detail.
hope that helps,
michael
On 09.10.21 14:58, Eric Bresie wrote:
> Always welcome to have guidance with java development. Good job…
>
> I found the netbeans jackpot site (https://netbeans.apache.org/jackpot/) to
> be a good starting point for additional information on this. But I had
> follow up question w…what is the use case for jackpot. Is it intended to be
>
> (1) part of netbeans (if so why is it being released separate from netbeans
> and/or nb-javac module),
> (2) plugin for netbeans,
> (3) a component of netbeans platform usable elsewhere (i.e. in other
> applications - VSCode?), or
> (4) a build add on (i.e. mvn) to run during compilation and/or build time
> to provide hints going forward?
> (5) all of the above
>
> Assume this also allows user defined rules to be added, but not sure if
> that is for specific user environments (where they added new rules) or is
> the intent new rules are added and integrated back into jackpot rule set?
>
> Eric
>
> On Sat, Oct 9, 2021 at 1:47 AM Jan Lahoda <la...@gmail.com> wrote:
>
>> Thanks everyone for checks/reviews and votes!
>>
>> The vote passes with 3 +1 votes and no 0 or -1 votes:
>> Matthias Bläsing
>> Eric Barboni
>> Jaroslav Tulach
>>
>> I'll proceed with publishing the release.
>>
>> Thanks!
>>
>> Jan
>>
>> On Wed, Oct 6, 2021 at 2:02 PM Jaroslav Tulach <ja...@gmail.com>
>> wrote:
>>
>>> +1 (binding)
>>>
>>> Downloaded, verified signature and sha and tested the staged
>>> `tool-12.5.jar` in my project:
>>> https://github.com/apache/netbeans/pull/3206
>>> -jt <https://github.com/apache/netbeans/pull/3206-jt>
>>>
>>>
>>> ne 3. 10. 2021 v 11:13 odesílatel Jan Lahoda <la...@gmail.com> napsal:
>>>
>>>> Dear all,
>>>>
>>>> I'd like to release the standalone Java Hints tool ("jackpot") based on
>>>> Apache NetBeans 12.5.
>>>>
>>>> The release is here:
>>>>
>>>>
>> https://dist.apache.org/repos/dist/dev/netbeans/netbeans-jackpot/netbeans-jackpot-12.5-vc1/apache-netbeans-jackpot-12.5.zip
>>>> Signature file:
>>>>
>>>>
>> https://dist.apache.org/repos/dist/dev/netbeans/netbeans-jackpot/netbeans-jackpot-12.5-vc1/apache-netbeans-jackpot-12.5.zip.asc
>>>> SHA512:
>>>>
>>>>
>> 1ff544f9c24f79e2835c43303d826b6e1fcee700fc14772141adf9302a8a74299ec0c33a29476964323a637572b62619f21453fa6ffcdcee34aac4440103362d
>>>> ./apache-netbeans-jackpot-12.5.zip
>>>>
>>>> KEYS file:
>>>>
>>>> https://dist.apache.org/repos/dist/release/netbeans/KEYS
>>>>
>>>> Apache NetBeans Jackpot 3.0 Git Repo tag:
>>>>
>>>>
>> https://github.com/apache/netbeans-jackpot30/releases/tag/netbeans-jackpot-12.5-vc1
>>>> Convenience binaries:
>>>> -built standalone tool:
>>>>
>>>>
>> https://dist.apache.org/repos/dist/dev/netbeans/netbeans-jackpot/netbeans-jackpot-12.5-vc1/apache-netbeans-jackpot-12.5-bin.zip
>>>> Its signature file:
>>>>
>>>>
>> https://dist.apache.org/repos/dist/dev/netbeans/netbeans-jackpot/netbeans-jackpot-12.5-vc1/apache-netbeans-jackpot-12.5-bin.zip.asc
>>>> and its SHA512:
>>>>
>>>>
>> 4905d2c044cd0251854046d042586ffb7ea092d09a495a8b605a640e9c4f45d45b7a60026af4a6ef9b26ffe054d676d8768d106d5e62b119ad9f9546f56c9551
>>>> ./apache-netbeans-jackpot-12.5-bin.zip
>>>>
>>>> -there is also a plugin staging Maven repository here:
>>>>
>> https://repository.apache.org/content/repositories/orgapachenetbeans-1091/
>>>> This vote is going to be open at least 72 hours, please vote with +1,
>> 0,
>>>> and -1 as usual.
>>>>
>>>> Thanks for any feedback!
>>>>
>>>> Jan
>>>>
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@netbeans.apache.org
For additional commands, e-mail: dev-help@netbeans.apache.org
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists