[All][RNG] FindBugs discontinued

classic Classic list List threaded Threaded
9 messages Options
Reply | Threaded
Open this post in threaded view
|

[All][RNG] FindBugs discontinued

Gilles Sadowski
Hi.

FindBugs chokes on Java 9 "module-info" files[1] and the project has
been shut down. There is a replacement:
   https://spotbugs.github.io/
Is there some common configuration that could be included in CP?
Is someone intending to do it?

In the meantime, does someone know how to work around the build
failure caused by FindBugs raising an exception?  Error follows:
---CUT---
      [java] The following errors occurred during analysis:
      [java]   Invalid class resource module-info.class in
/home/gilles/devel/java/apache/commons-rng/trunk/commons-rng-examples/examples-jpms/jpm
s-lib/target/classes:module-info.class
      [java]    
edu.umd.cs.findbugs.classfile.InvalidClassFileFormatException: Invalid
classfile format in /home/gilles/devel/java/apache/commons
-rng/trunk/commons-rng-examples/examples-jpms/jpms-lib/target/classes:module-info.class
      [java]       At
edu.umd.cs.findbugs.classfile.engine.ClassParser.readConstant(ClassParser.java:245)
      [java]       At
edu.umd.cs.findbugs.classfile.engine.ClassParser.parse(ClassParser.java:102)
      [java]       At
edu.umd.cs.findbugs.classfile.impl.ClassPathBuilder.parseClassName(ClassPathBuilder.java:716)
      [java]       At
edu.umd.cs.findbugs.classfile.impl.ClassPathBuilder.scanCodebase(ClassPathBuilder.java:679)
      [java]       At
edu.umd.cs.findbugs.classfile.impl.ClassPathBuilder.processWorkList(ClassPathBuilder.java:622)
      [java]       At
edu.umd.cs.findbugs.classfile.impl.ClassPathBuilder.build(ClassPathBuilder.java:226)
      [java]       At
edu.umd.cs.findbugs.FindBugs2.buildClassPath(FindBugs2.java:677)
      [java]       At
edu.umd.cs.findbugs.FindBugs2.execute(FindBugs2.java:218)
      [java]       At
edu.umd.cs.findbugs.FindBugs.runMain(FindBugs.java:402)
      [java]       At
edu.umd.cs.findbugs.FindBugs2.main(FindBugs2.java:1200)
      [java]   Error scanning module-info for referenced classes
      [java]     java.lang.IllegalArgumentException
      [java]       At
org.objectweb.asm.ClassReader.<init>(ClassReader.java:170)
      [java]       At
org.objectweb.asm.ClassReader.<init>(ClassReader.java:153)
      [java]       At
edu.umd.cs.findbugs.asm.FBClassReader.<init>(FBClassReader.java:35)
      [java]       At
edu.umd.cs.findbugs.classfile.engine.asm.ClassReaderAnalysisEngine.analyze(ClassReaderAnalysisEngine.java:48)
      [java]       At
edu.umd.cs.findbugs.classfile.engine.asm.ClassReaderAnalysisEngine.analyze(ClassReaderAnalysisEngine.java:34)
      [java]       At
edu.umd.cs.findbugs.classfile.impl.AnalysisCache.getClassAnalysis(AnalysisCache.java:262)
      [java]       At
edu.umd.cs.findbugs.classfile.engine.ClassInfoAnalysisEngine.analyze(ClassInfoAnalysisEngine.java:75)
      [java]       At
edu.umd.cs.findbugs.classfile.engine.ClassInfoAnalysisEngine.analyze(ClassInfoAnalysisEngine.java:38)
      [java]       At
edu.umd.cs.findbugs.classfile.impl.AnalysisCache.getClassAnalysis(AnalysisCache.java:262)
      [java]       At
edu.umd.cs.findbugs.FindBugs2.buildReferencedClassSet(FindBugs2.java:774)
      [java]       At
edu.umd.cs.findbugs.FindBugs2.execute(FindBugs2.java:222)
      [java]       At
edu.umd.cs.findbugs.FindBugs.runMain(FindBugs.java:402)
      [java]       At
edu.umd.cs.findbugs.FindBugs2.main(FindBugs2.java:1200)
---CUT---

Thanks,
Gilles

[1] Cf. https://github.com/gleclaire/findbugs-maven-plugin/issues/60

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

Re: [All][RNG] FindBugs discontinued

Jacques Le Roux
Le 14/02/2018 à 19:02, Gilles a écrit :
> FindBugs chokes on Java 9 "module-info" files[1] and the project has
> been shut down
Hi Gilles,

Do you have a reference where it's said that FindBugs has been shut down?

Thanks

Jacques


---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

Re: [All][RNG] FindBugs discontinued

jochen-2
Hi, Gilles,

are you aware of https://spotbugs.github.io/

Apart from the name change: A lot of commits in January. Doesn't look
dead to me.

Jochen


On Fri, Feb 16, 2018 at 9:04 AM, Jacques Le Roux
<[hidden email]> wrote:

> Le 14/02/2018 à 19:02, Gilles a écrit :
>>
>> FindBugs chokes on Java 9 "module-info" files[1] and the project has
>> been shut down
>
> Hi Gilles,
>
> Do you have a reference where it's said that FindBugs has been shut down?
>
> Thanks
>
> Jacques
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [hidden email]
> For additional commands, e-mail: [hidden email]
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

Re: [All][RNG] FindBugs discontinued

Jacques Le Roux
Hi Jochen,

Actually Gilles suggested to use spotbugs

Jacques


Le 16/02/2018 à 10:39, Jochen Wiedmann a écrit :

> Hi, Gilles,
>
> are you aware of https://spotbugs.github.io/
>
> Apart from the name change: A lot of commits in January. Doesn't look
> dead to me.
>
> Jochen
>
>
> On Fri, Feb 16, 2018 at 9:04 AM, Jacques Le Roux
> <[hidden email]> wrote:
>> Le 14/02/2018 à 19:02, Gilles a écrit :
>>> FindBugs chokes on Java 9 "module-info" files[1] and the project has
>>> been shut down
>> Hi Gilles,
>>
>> Do you have a reference where it's said that FindBugs has been shut down?
>>
>> Thanks
>>
>> Jacques
>>
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: [hidden email]
>> For additional commands, e-mail: [hidden email]
>>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [hidden email]
> For additional commands, e-mail: [hidden email]
>
>


---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

Re: [All][RNG] FindBugs discontinued

Gilles Sadowski
On Fri, 16 Feb 2018 15:02:32 +0100, Jacques Le Roux wrote:
> Hi Jochen,
>
> Actually Gilles suggested to use spotbugs

Yes.
The SpotBugs web site mentions that they are the successor.
And the FindBugs web site is offline/disabled.
"Commons" projects use the FindBugs maven plugin and, as
I've shown, that is going to be a problem with Java 9.

Gilles

>
> Jacques
>
>
> Le 16/02/2018 à 10:39, Jochen Wiedmann a écrit :
>> Hi, Gilles,
>>
>> are you aware of https://spotbugs.github.io/
>>
>> Apart from the name change: A lot of commits in January. Doesn't
>> look
>> dead to me.
>>
>> Jochen
>>
>>
>> On Fri, Feb 16, 2018 at 9:04 AM, Jacques Le Roux
>> <[hidden email]> wrote:
>>> Le 14/02/2018 à 19:02, Gilles a écrit :
>>>> FindBugs chokes on Java 9 "module-info" files[1] and the project
>>>> has
>>>> been shut down
>>> Hi Gilles,
>>>
>>> Do you have a reference where it's said that FindBugs has been shut
>>> down?
>>>
>>> Thanks
>>>
>>> Jacques


---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

Re: [All][RNG] FindBugs discontinued

Jacques Le Roux
OK, so I'll wait an official announce from http://findbugs.sourceforge.net/

Thanks

Jacques


Le 16/02/2018 à 17:25, Gilles a écrit :

> On Fri, 16 Feb 2018 15:02:32 +0100, Jacques Le Roux wrote:
>> Hi Jochen,
>>
>> Actually Gilles suggested to use spotbugs
>
> Yes.
> The SpotBugs web site mentions that they are the successor.
> And the FindBugs web site is offline/disabled.
> "Commons" projects use the FindBugs maven plugin and, as
> I've shown, that is going to be a problem with Java 9.
>
> Gilles
>
>>
>> Jacques
>>
>>
>> Le 16/02/2018 à 10:39, Jochen Wiedmann a écrit :
>>> Hi, Gilles,
>>>
>>> are you aware of https://spotbugs.github.io/
>>>
>>> Apart from the name change: A lot of commits in January. Doesn't look
>>> dead to me.
>>>
>>> Jochen
>>>
>>>
>>> On Fri, Feb 16, 2018 at 9:04 AM, Jacques Le Roux
>>> <[hidden email]> wrote:
>>>> Le 14/02/2018 à 19:02, Gilles a écrit :
>>>>> FindBugs chokes on Java 9 "module-info" files[1] and the project has
>>>>> been shut down
>>>> Hi Gilles,
>>>>
>>>> Do you have a reference where it's said that FindBugs has been shut down?
>>>>
>>>> Thanks
>>>>
>>>> Jacques
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [hidden email]
> For additional commands, e-mail: [hidden email]
>
>


---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

Re: [All][RNG] FindBugs discontinued

Allon Mureinik
The migration from FindBugs to SpotBugs seems to be trivial once we decide
to go down that route:
https://github.com/apache/commons-rng/pull/7

[Note that there are test case failures in the CI for this PR that are
unrelated to the findbugs-spotbugs migration - they also seem to reproduce
on master]

On Fri, Feb 16, 2018 at 8:05 PM, Jacques Le Roux <
[hidden email]> wrote:

> OK, so I'll wait an official announce from http://findbugs.sourceforge.ne
> t/
>
> Thanks
>
> Jacques
>
>
>
> Le 16/02/2018 à 17:25, Gilles a écrit :
>
>> On Fri, 16 Feb 2018 15:02:32 +0100, Jacques Le Roux wrote:
>>
>>> Hi Jochen,
>>>
>>> Actually Gilles suggested to use spotbugs
>>>
>>
>> Yes.
>> The SpotBugs web site mentions that they are the successor.
>> And the FindBugs web site is offline/disabled.
>> "Commons" projects use the FindBugs maven plugin and, as
>> I've shown, that is going to be a problem with Java 9.
>>
>> Gilles
>>
>>
>>> Jacques
>>>
>>>
>>> Le 16/02/2018 à 10:39, Jochen Wiedmann a écrit :
>>>
>>>> Hi, Gilles,
>>>>
>>>> are you aware of https://spotbugs.github.io/
>>>>
>>>> Apart from the name change: A lot of commits in January. Doesn't look
>>>> dead to me.
>>>>
>>>> Jochen
>>>>
>>>>
>>>> On Fri, Feb 16, 2018 at 9:04 AM, Jacques Le Roux
>>>> <[hidden email]> wrote:
>>>>
>>>>> Le 14/02/2018 à 19:02, Gilles a écrit :
>>>>>
>>>>>> FindBugs chokes on Java 9 "module-info" files[1] and the project has
>>>>>> been shut down
>>>>>>
>>>>> Hi Gilles,
>>>>>
>>>>> Do you have a reference where it's said that FindBugs has been shut
>>>>> down?
>>>>>
>>>>> Thanks
>>>>>
>>>>> Jacques
>>>>>
>>>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: [hidden email]
>> For additional commands, e-mail: [hidden email]
>>
>>
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [hidden email]
> For additional commands, e-mail: [hidden email]
>
>
Reply | Threaded
Open this post in threaded view
|

Re: [All][RNG] FindBugs discontinued

Gilles Sadowski
On Fri, 16 Feb 2018 21:12:39 +0200, Allon Mureinik wrote:
> The migration from FindBugs to SpotBugs seems to be trivial once we
> decide
> to go down that route:
> https://github.com/apache/commons-rng/pull/7

Merged.
Thanks for the patch, but it didn't work without an
additional change (see log). :-}

> [Note that there are test case failures in the CI for this PR that
> are
> unrelated to the findbugs-spotbugs migration - they also seem to
> reproduce
> on master]

Those failures occur intermittently, due to the "random"
nature of the functionality being tested.

Regards,
Gilles

>
> On Fri, Feb 16, 2018 at 8:05 PM, Jacques Le Roux <
> [hidden email]> wrote:
>
>> OK, so I'll wait an official announce from
>> http://findbugs.sourceforge.ne
>> t/
>>
>> Thanks
>>
>> Jacques
>>
>>
>>
>> Le 16/02/2018 à 17:25, Gilles a écrit :
>>
>>> On Fri, 16 Feb 2018 15:02:32 +0100, Jacques Le Roux wrote:
>>>
>>>> Hi Jochen,
>>>>
>>>> Actually Gilles suggested to use spotbugs
>>>>
>>>
>>> Yes.
>>> The SpotBugs web site mentions that they are the successor.
>>> And the FindBugs web site is offline/disabled.
>>> "Commons" projects use the FindBugs maven plugin and, as
>>> I've shown, that is going to be a problem with Java 9.
>>>
>>> Gilles
>>>
>>>
>>>> Jacques
>>>>
>>>>
>>>> Le 16/02/2018 à 10:39, Jochen Wiedmann a écrit :
>>>>
>>>>> Hi, Gilles,
>>>>>
>>>>> are you aware of https://spotbugs.github.io/
>>>>>
>>>>> Apart from the name change: A lot of commits in January. Doesn't
>>>>> look
>>>>> dead to me.
>>>>>
>>>>> Jochen
>>>>>
>>>>>
>>>>> On Fri, Feb 16, 2018 at 9:04 AM, Jacques Le Roux
>>>>> <[hidden email]> wrote:
>>>>>
>>>>>> Le 14/02/2018 à 19:02, Gilles a écrit :
>>>>>>
>>>>>>> FindBugs chokes on Java 9 "module-info" files[1] and the
>>>>>>> project has
>>>>>>> been shut down
>>>>>>>
>>>>>> Hi Gilles,
>>>>>>
>>>>>> Do you have a reference where it's said that FindBugs has been
>>>>>> shut
>>>>>> down?
>>>>>>
>>>>>> Thanks
>>>>>>
>>>>>> Jacques
>>>>>>
>>>>>



---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

Re: [All][RNG] FindBugs discontinued

Allon Mureinik
darn, missed one :-)
Thanks Giles!

On Sat, Feb 17, 2018 at 5:12 AM, Gilles <[hidden email]>
wrote:

> On Fri, 16 Feb 2018 21:12:39 +0200, Allon Mureinik wrote:
>
>> The migration from FindBugs to SpotBugs seems to be trivial once we decide
>> to go down that route:
>> https://github.com/apache/commons-rng/pull/7
>>
>
> Merged.
> Thanks for the patch, but it didn't work without an
> additional change (see log). :-}
>
> [Note that there are test case failures in the CI for this PR that are
>> unrelated to the findbugs-spotbugs migration - they also seem to reproduce
>> on master]
>>
>
> Those failures occur intermittently, due to the "random"
> nature of the functionality being tested.
>
> Regards,
> Gilles
>
>
>
>> On Fri, Feb 16, 2018 at 8:05 PM, Jacques Le Roux <
>> [hidden email]> wrote:
>>
>> OK, so I'll wait an official announce from http://findbugs.sourceforge.ne
>>> t/
>>>
>>> Thanks
>>>
>>> Jacques
>>>
>>>
>>>
>>> Le 16/02/2018 à 17:25, Gilles a écrit :
>>>
>>> On Fri, 16 Feb 2018 15:02:32 +0100, Jacques Le Roux wrote:
>>>>
>>>> Hi Jochen,
>>>>>
>>>>> Actually Gilles suggested to use spotbugs
>>>>>
>>>>>
>>>> Yes.
>>>> The SpotBugs web site mentions that they are the successor.
>>>> And the FindBugs web site is offline/disabled.
>>>> "Commons" projects use the FindBugs maven plugin and, as
>>>> I've shown, that is going to be a problem with Java 9.
>>>>
>>>> Gilles
>>>>
>>>>
>>>> Jacques
>>>>>
>>>>>
>>>>> Le 16/02/2018 à 10:39, Jochen Wiedmann a écrit :
>>>>>
>>>>> Hi, Gilles,
>>>>>>
>>>>>> are you aware of https://spotbugs.github.io/
>>>>>>
>>>>>> Apart from the name change: A lot of commits in January. Doesn't look
>>>>>> dead to me.
>>>>>>
>>>>>> Jochen
>>>>>>
>>>>>>
>>>>>> On Fri, Feb 16, 2018 at 9:04 AM, Jacques Le Roux
>>>>>> <[hidden email]> wrote:
>>>>>>
>>>>>> Le 14/02/2018 à 19:02, Gilles a écrit :
>>>>>>>
>>>>>>> FindBugs chokes on Java 9 "module-info" files[1] and the project has
>>>>>>>> been shut down
>>>>>>>>
>>>>>>>> Hi Gilles,
>>>>>>>
>>>>>>> Do you have a reference where it's said that FindBugs has been shut
>>>>>>> down?
>>>>>>>
>>>>>>> Thanks
>>>>>>>
>>>>>>> Jacques
>>>>>>>
>>>>>>>
>>>>>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [hidden email]
> For additional commands, e-mail: [hidden email]
>
>