</compile>
</ajc-test>
+ <ajc-test dir="bugs/fieldsOnInterfaces"
+ pr="52107"
+ title="declare String field on interface">
+ <compile files="StringFieldOnInterface.java">
+ <message kind="warning" line="16" text="this affected type is not exposed"/>
+ <message kind="warning" line="17" text="this affected type is not exposed"/>
+ </compile>
+ </ajc-test>
+
+ <ajc-test dir="bugs/fieldsOnInterfaces"
+ pr="52107"
+ title="declare int field on interface">
+ <compile files="IntFieldOnInterface.java">
+ <message kind="warning" line="27" text="this affected type is not exposed"/>
+ <message kind="warning" line="28" text="this affected type is not exposed"/>
+ </compile>
+ </ajc-test>
+
+ <ajc-test dir="bugs/fieldsOnInterfaces"
+ pr="52107"
+ title="declare Object field on interface">
+ <compile files="ObjectFieldOnInterface.java">
+ <message kind="warning" line="20" text="this affected type is not exposed"/>
+ <message kind="warning" line="21" text="this affected type is not exposed"/>
+ </compile>
+ </ajc-test>
+
</suite>
<run class="InterfaceInitializerOrder"/>
</ajc-test>
- <ajc-test dir="bugs/fieldsOnInterfaces"
- pr="52107"
- title="declare String field on interface">
- <compile files="StringFieldOnInterface.java"/>
- <run class="StringFieldOnInterface"/>
- </ajc-test>
-
- <ajc-test dir="bugs/fieldsOnInterfaces"
- pr="52107"
- title="declare int field on interface">
- <compile files="IntFieldOnInterface.java"/>
- <run class="IntFieldOnInterface"/>
- </ajc-test>
-
- <ajc-test dir="bugs/fieldsOnInterfaces"
- pr="52107"
- title="declare Object field on interface">
- <compile files="ObjectFieldOnInterface.java"/>
- <run class="ObjectFieldOnInterface"/>
- </ajc-test>
-
</suite>
//System.err.println("matching: " + this + " to " + matchType + " onType = " + onType);
if (matchType.equals(onType)) {
if (!onType.isExposedToWeaver()) {
- if (onType.getWeaverState() != null) {
+ if (onType.getWeaverState() == null) {
if (matchType.getWorld().getLint().typeNotExposedToWeaver.isEnabled()) {
matchType.getWorld().getLint().typeNotExposedToWeaver.signal(
matchType.getName(), signature.getSourceLocation());