Class ElementDefaultConflictTest
java.lang.Object
org.checkerframework.framework.test.junit.ElementDefaultConflictTest
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidRuns the checker with the option that makes it register an element default conflicting with the@DefaultQualifierwritten onOrderBeforeClass.
-
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@DefaultQualifierwritten onOrderBeforeClass.
-