Class ElementDefaultConflictTest

java.lang.Object
org.checkerframework.framework.test.junit.ElementDefaultConflictTest

public class ElementDefaultConflictTest extends Object
Tests that a default registered by QualifierDefaults.addElementDefault(javax.lang.model.element.Element, javax.lang.model.element.AnnotationMirror, org.checkerframework.framework.qual.TypeUseLocation) which conflicts with a @DefaultQualifier written on the same declaration is reported as a type-system error, rather than the two being merged and the winner decided by annotation ordering.
  • Constructor Details

    • ElementDefaultConflictTest

      public ElementDefaultConflictTest()
      Creates a new ElementDefaultConflictTest.
  • Method Details

    • conflictWithWrittenDefaultQualifierIsATypeSystemError

      public void conflictWithWrittenDefaultQualifierIsATypeSystemError()
      Runs the checker with the option that makes it register an element default conflicting with the @DefaultQualifier written on OrderBeforeClass.