ACR Rules

  1. Home
  2. Docs
  3. ACR Rules
  4. Reliability (41)
  5. Prevent duplicate classes in jars

Prevent duplicate classes in jars

Introduced in version 2.6 (released August 2021)

Duplicate classes in user libraries (jars) can cause unexpected behaviour. Java loads the class only once and changes in the order of things, by model changes or by users doing things in a different order, can cause classes to be loaded from a different jar. These classes might have a different implementation and this might lead to errors.