Giter Site home page Giter Site logo

Comments (8)

dirmgr avatar dirmgr commented on September 13, 2024

Although I had never seen this warning before, I believe that I have been able to identify and correct the problem.

Virtually all public classes within the LDAP SDK include a ThreadSafety annotation that is intended to provide developers with information about whether or not instances of that class are expected to be safe for concurrent use across multiple threads. The ThreadSafety annotation should include a ThreadSafetyLevel value, where ThreadSafetyLevel is an enum with values like COMPLETELY_THREADSAFE, MOSTLY_THREADSAFE, MOSTLY_NOT_THREADSAFE, and NOT_THREADSAFE (and in cases where the value is MOSTLY_THREADSAFE or MOSTLY_NOT_THREADSAFE, the Javadoc should provide more details about which uses are/are not threadsafe).

I believe that the problem you've encountered is that the ThreadSafetyLevel enum was marked with a ThreadSafety annotation, and that annotation included a ThreadSafetyLevel value. The compiler doesn't like that the enum is marked with an annotation that references a value of that enum.

I have just committed an update to the LDAP SDK that removed the ThreadSafety annotation from the ThreadSafetyLevel enum, and I believe that this should fix the problem.

from ldapsdk.

irundaia avatar irundaia commented on September 13, 2024

That would be great thank you!

from ldapsdk.

dirmgr avatar dirmgr commented on September 13, 2024

The commit is in the repository now, so you can check out and build the LDAP SDK for yourself to see if that fixes the problem. The code in the repository is always kept in a production-ready state, so you shouldn't have any concerns about using a jar that you built for yourself. As long as you don't alter the LDAP SDK itself when you build it, we will provide the same level of support for any version that you build yourself as we do for official builds that we release.

from ldapsdk.

irundaia avatar irundaia commented on September 13, 2024

I've tested the fix, and it works now. Do you have any idea when you might publish the next release? I'm asking because we are moving toward a maven build which automatically resolves external dependencies (hopefully including the ldapsdk).

For now, we'll keep using the manually built jar. Thank you for the quick support!

from ldapsdk.

dirmgr avatar dirmgr commented on September 13, 2024

I don't have a specific date right now, but my guess is that the next official release will be in mid to late December. It will almost certainly be before the end of the year.

from ldapsdk.

irundaia avatar irundaia commented on September 13, 2024

Great, thank you for your help

from ldapsdk.

briandignan avatar briandignan commented on September 13, 2024

I've been dealing with this warning as well. Looking forward to the next release!

from ldapsdk.

irundaia avatar irundaia commented on September 13, 2024

With the new release, I assume that this issue can now be closed. Thanks for the help.

from ldapsdk.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.