Search Unity

  1. Unity Asset Manager is now available in public beta. Try it out now and join the conversation here in the forums.
    Dismiss Notice

Bug J2N Dependency in 2021.2b9

Discussion in '2021.2 Beta' started by burningmime, Sep 10, 2021.

  1. burningmime

    burningmime

    Joined:
    Jan 25, 2014
    Posts:
    845
    Whenever I go to import System.Colelctions.List, Rider's first suggestion is something called J2N.Collections. This appears to be a port of the Java standard library. I have not been able to track down what references it, but I only have Unity libraries installed. This appears a new thing that crept in, because it was not appearing in beta 6.
     
    van800 likes this.
  2. burningmime

    burningmime

    Joined:
    Jan 25, 2014
    Posts:
    845
    Found it:

    C:\me\code\urpg\Library\PackageCache\com.unity.searcher@4.8.0\Editor\Lucene\J2N.dll

    I don't know what "com.unity.searcher" is. It appears to be an editor-only package, and I'm worried that I'll accidently reference it in runtime code since so many classes have the same names/APIs as .NET ones. Also, it just feels like "bad form" to have the Java standard library exposed if it's not actively requested by the developer.
     
    Last edited: Sep 10, 2021
  3. LeonhardP

    LeonhardP

    Unity Technologies

    Joined:
    Jul 4, 2016
    Posts:
    3,136
    burningmime likes this.