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
[email protected]


On Sat, Oct 9, 2021 at 9:25 AM Michael Bien <[email protected]> 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 <[email protected]> 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
    <[email protected]>
    >> 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
    <[email protected]> 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
    >>>>

Reply via email to