[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
| Re: [aspectj-users] Internal compiler error "org.aspectj.weaver.BCException: Bad type name:" | 
pope wrote:
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
[quote Dmitri Mamrukov::on 2/1/2005 2:20 AM]
|   Greetings,
|
| After I add a copy of one of the example folders
| /<Install-Dir>//doc/examples/introduction (Chapter 3 of The 
Programming Guide),
| where the Point class is advised by advices defined in the aspects
|
| CloneablePoint.java
| ComparablePoint.java
| HashablePoint.java
|
| to my AspectJ project in Eclipse IDE and compile it, I keep getting the
| following compilation error for the class Point.
|
| This happens when the aspect ComparablePoint.java has "declare 
parents: Point
| implements Comparable;". If I disable this statement (say, by 
commenting out),
| all goes fine.
|
| Compiling/running on the command-line goes fine.
|
| Are there any compile options in AJDT that should be enabled/disabled?
|
| Environment
| -----------
|
| Java RunTime version: 1.5
|
| Eclipse Platform Version: 3.1.0
| Build id: 200412162000
|
| AJDT Version: 1.2.0.DEVELOPMENT
| Build id: 20050124144759
|
| Any comments would be appreciated,
| Dmitri
|
| ***********************************************************************
|
| Internal compiler error
| org.aspectj.weaver.BCException: Bad type name:
|
|     at org.aspectj.weaver.TypeX.nameToSignature(TypeX.java:634)
|
|     at org.aspectj.weaver.TypeX.forName(TypeX.java:87)
|
|     at
| 
org.aspectj.ajdt.internal.compiler.lookup.EclipseFactory.fromBinding(EclipseFactory.java:155) 
|
|     at
| 
org.aspectj.ajdt.internal.compiler.lookup.EclipseFactory.fromBindings(EclipseFactory.java:163) 
|
|     at
| 
org.aspectj.ajdt.internal.compiler.lookup.EclipseFactory.makeResolvedMember(EclipseFactory.java:229) 
|
|     at
| 
org.aspectj.ajdt.internal.compiler.lookup.EclipseFactory.makeResolvedMember(EclipseFactory.java:224) 
|
|     at
|
org.aspectj.ajdt.internal.compiler.problem.AjProblemReporter.abstractMethodMustBeImplemented(AjProblemReporter.java:203) 
|
|     at
|
org.aspectj.org.eclipse.jdt.internal.compiler.lookup.MethodVerifier.checkAbstractMethod(MethodVerifier.java:96) 
|
|     at
|
org.aspectj.org.eclipse.jdt.internal.compiler.lookup.MethodVerifier.checkMethods(MethodVerifier.java:261) 
|
|     at
| 
org.aspectj.org.eclipse.jdt.internal.compiler.lookup.MethodVerifier.verify(MethodVerifier.java:575) 
|
|     at
|
org.aspectj.org.eclipse.jdt.internal.compiler.lookup.SourceTypeBinding.verifyMethods(SourceTypeBinding.java:1376) 
|
|     at
|
org.aspectj.org.eclipse.jdt.internal.compiler.lookup.CompilationUnitScope.verifyMethods(CompilationUnitScope.java:672) 
|
|     at
| 
org.aspectj.org.eclipse.jdt.internal.compiler.Compiler.process(Compiler.java:543) 
|
|     at
| 
org.aspectj.org.eclipse.jdt.internal.compiler.Compiler.compile(Compiler.java:365) 
|
|     at
| 
org.aspectj.ajdt.internal.core.builder.AjBuildManager.performCompilation(AjBuildManager.java:682) 
|
|     at
| 
org.aspectj.ajdt.internal.core.builder.AjBuildManager.doBuild(AjBuildManager.java:168) 
|
|     at
| 
org.aspectj.ajdt.internal.core.builder.AjBuildManager.batchBuild(AjBuildManager.java:102) 
|
|     at 
org.aspectj.ajde.internal.CompilerAdapter.compile(CompilerAdapter.java:122) 
|
|     at
| 
org.aspectj.ajde.internal.AspectJBuildManager$CompilerThread.run(AspectJBuildManager.java:165) 
| _______________________________________________ aspectj-users 
mailing list
| aspectj-users@xxxxxxxxxxx 
http://dev.eclipse.org/mailman/listinfo/aspectj-users
I have just tried the example you pointed in exactly the same env and 
it works perfectly. Have you
respected the package names?
Yes, I did respect the package names (I checked that too :-)). I just 
copied the folder <Install-Dir>/doc/examples/introduction with its 
contents into my folder src.
The problem ("Internal compiler error..." + pop-up dialogs for this 
error) goes away when I comment out the whole body of the aspect 
ComparablePoint. That is,
public aspect ComparablePoint
{
}
This way, I've been able to run the examples (the main methods in each 
of the aspects and the Point class).
- --
:pope
[the_mindstorm]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.0 (MingW32)
iD8DBQFB/tVrTTDTje0R2dgRApMAAJ48HFTHdPP+Rz0lmN50BhV8XSNnPgCfZSao
TdF68GFEcDsQXPzPJfIZFAY=
=7e8o
-----END PGP SIGNATURE-----
_______________________________________________
aspectj-users mailing list
aspectj-users@xxxxxxxxxxx
http://dev.eclipse.org/mailman/listinfo/aspectj-users