سؤال

لقد حصلت على تبعيات على العديد من Apache TLPs (مشاريع المستوى الأعلى) مثل Apache Axis و Commons HttpClient و Commons DBCP و Commons Transaction وما إلى ذلك.

كل من هذه المشاريع لديه اعتماد على JCL (تسجيل العموم) ويعتمد كل مشروع على إصدار مختلف من JCL.

ما هو إصدار JCL الذي يجب أن أختاره - هل سيكون أعلى إصدار هو الخيار الأفضل؟ هل ستكون الإصدارات العليا من JCL متوافقة مع المشاريع التي تم تجميعها مقابل إصدار أقل (تم تجميع بعض المشاريع مقابل إصدار 1.0.x من JCL ، في حين تم تجميع الآخرين مقابل 1.1.x)؟ هل ينقل مشروع JCL نفسه هذه المعلومات في مكان ما؟

هل كانت مفيدة؟

المحلول

ال ملاحظات الإصدار من الإصدار 1.1.1 قل ما يلي:

== Incompatibilities ==

The protected method LogFactory.getContextClassLoader has been reverted to pre-1.1
behaviour. In earlier releases, this method did not use an AccessController when
obtaining the context classloader. In version 1.1 it did. In this release, it has
reverted to not using an AccessController; any user-level code that needs to obtain
a context classloader should itself create an AccessController, and call the
LogFactory.getContextClassLoader method via the doPrivileged method. This fixes a
potential security issue, where untrusted code could get access to the context
classloader if a signed Commons Logging library was in the classpath.

هذا يبدو محددًا جدًا بالنسبة لي. سأحاول أحدث إصدار (1.1.1) وأبحث في حالة حدوث بعض المشاكل.

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top