Hi again,

Am Montag, dem 06.06.2022 um 09:05 +0200 schrieb Jaroslav Tulach:
> > 2022-05-29T17:06:31.9092439Z     [junit] java.lang.AssertionError: Has to 
> > be NbRepository: org.openide.filesystems.Repository@744b325b
> > 2022-05-29T17:06:31.9093232Z     [junit]    at 
> > org.netbeans.core.startup.Main.start(Main.java:298)
> > 2022-05-29T17:06:31.9094120Z     [junit]    at 
> > org.netbeans.core.startup.TopThreadGroup.run(TopThreadGroup.java:98)
> > 2022-05-29T17:06:31.9094571Z     [junit]    at 
> > java.lang.Thread.run(Thread.java:750) 2022-05-29T17:06:31.9095235Z    
> > [junit]
> 
> Isn't this caused by some race condition? Temporarily adding
> `this.when = new 
> Exception("initialized")` into `Repository` constructor and printing
> the 
> stacktraces when the `AssertionError` happens might tell us who's
> responsible 
> for the misconfiguration of the test.

This is a very nice way to catch this - thank you for the idea. I had
to slightly alter it, but I got a stack trace.

I decided to go ahead with merging the PR and see how it develops in
the next few days.

I filed an issue to hold information about that problem:

https://github.com/apache/netbeans/issues/4211

Then at least there is a record of it and it can be further analysed.

Greetings

Matthias

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

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



Reply via email to