Bug 46467 - perthis(this(Inner)) does not resolve when importing Foo.Inner
Summary: perthis(this(Inner)) does not resolve when importing Foo.Inner
Status: RESOLVED WORKSFORME
Alias: None
Product: AspectJ
Classification: Tools
Component: Compiler (show other bugs)
Version: 1.1.1   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: 1.2   Edit
Assignee: Adrian Colyer CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-11-12 07:06 EST by attila lendvai CLA
Modified: 2004-01-29 11:13 EST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description attila lendvai CLA 2003-11-12 07:06:04 EST
import com.mine.Foo.InnerInterface;

aspect Bar perthis(this(InnerInterface))
{
}

reports that InnerInterface can not be resolved.
Comment 1 Adrian Colyer CLA 2004-01-07 15:52:13 EST
I tried to reproduce this bug with the following source files:

in Bar.java:
=================
import abc.Foo.InnerInterface;

public aspect Bar perthis(this(InnerInterface)) {
	
}

in abc/Foo.java:
===================
package abc;

// pr 46467

public class Foo {
	
	public interface InnerInterface {};
	
}


This is compiling successfully against the CVS head build (i.e. InnerInterface 
is resolved in Bar). It fails of course if the InnerInterface is not declared 
public. 

You don't provide your implementation of Foo... does it look like mine, and is 
it still failing for you?

Thanks, Adrian.
Comment 2 Adrian Colyer CLA 2004-01-29 11:13:39 EST
I'm closing this bug based on my last comment - but if it still fails for you 
against head please reopen with a full test case. thks..