}
private void makePublic(TypeBinding binding) {
+ if (binding == null || !binding.isValidBinding()) return; // has already produced an error
if (binding instanceof ReferenceBinding) {
ReferenceBinding rb = (ReferenceBinding)binding;
if (!rb.isPublic()) handler.notePrivilegedTypeAccess(rb, null); //???
EclipseFactory world = EclipseFactory.fromScopeLookupEnvironment(classScope);
resolveOnType(classScope);
- if (classScope.referenceContext.binding == null) return null;
+ if (ignoreFurtherInvestigation) return null;
binding = classScope.referenceContext.binding.resolveTypesFor(binding);
if (ignoreFurtherInvestigation) return null;
<compile files="CflowBindingOrig.java"/>
<run class="CflowBindingOrig"/>
</ajc-test>
+
+ <ajc-test dir="errors"
+ title="type not imported in around advice">
+ <compile files="TypeNotImportedInAroundCE.java">
+ <message kind="error" line="10"/>
+ </compile>
+ </ajc-test>
+
+ <ajc-test dir="errors"
+ title="type not imported in aspect">
+ <compile files="TypeInAspectNotImportedCE.java">
+ <message kind="error" line="6"/>
+ </compile>
+ </ajc-test>
</suite>
<run class="AspectInitError"/>
</ajc-test>
- <ajc-test dir="errors"
- title="type not imported in around advice">
- <compile files="TypeNotImportedInAroundCE.java">
- <message kind="error" line="10"/>
- </compile>
- </ajc-test>
-
- <ajc-test dir="errors"
- title="type not imported in aspect">
- <compile files="TypeInAspectNotImportedCE.java">
- <message kind="error" line="6"/>
- </compile>
- </ajc-test>
-
</suite>
<!DOCTYPE suite SYSTEM "../tests/ajcTestSuite.dtd">
<suite>
- <ajc-test dir="errors"
- title="type not imported in around advice">
- <compile files="TypeNotImportedInAroundCE.java">
- <message kind="error" line="10"/>
- </compile>
- </ajc-test>
- <ajc-test dir="errors"
- title="type not imported in aspect">
- <compile files="TypeInAspectNotImportedCE.java">
- <message kind="error" line="6"/>
- </compile>
- </ajc-test>
<!--