Community
Participate
Working Groups
Compiling the following produces a BCException rather than a compiler error: ------------------------------------------------------------ public abstract aspect AObserver<Observable, Observer, Event> { public boolean Observer.handle(Observable o, Event e) { return true; } } ------------------------------------------------------------ when collecting itds and declares AObserver when completing type bindings when batch building with classpath: c:\home\apps\jdk15\jre\lib\ext\dnsns.jar;c:\home\apps\jdk15\jre\lib\ext\localedata.jar;c:\home\apps\jdk15\jre\lib\ext\sunjce_provider.jar;c:\home\apps\jdk15\jre\lib\ext\sunpkcs11.jar;C:\home\apps\aspectj-1.5\lib\aspectjrt.jar; null java.lang.NullPointerException at org.aspectj.ajdt.internal.compiler.ast.InterTypeDeclaration.ensureScopeSetup(InterTypeDeclaration.java:361) at org.aspectj.org.eclipse.jdt.internal.compiler.lookup.SourceTypeBinding.resolveTypesFor(SourceTypeBinding.java:1279) at org.aspectj.ajdt.internal.compiler.ast.InterTypeMethodDeclaration.build(InterTypeMethodDeclaration.java:175) at org.aspectj.ajdt.internal.compiler.ast.AspectDeclaration.buildInterTypeAndPerClause(AspectDeclaration.java:1053) at org.aspectj.ajdt.internal.compiler.lookup.AjLookupEnvironment.buildInterTypeAndPerClause(AjLookupEnvironment.java:427) at org.aspectj.ajdt.internal.compiler.lookup.AjLookupEnvironment.collectAllITDsAndDeclares(AjLookupEnvironment.java:311) at org.aspectj.ajdt.internal.compiler.lookup.AjLookupEnvironment.completeTypeBindings(AjLookupEnvironment.java:166) at org.aspectj.org.eclipse.jdt.internal.compiler.Compiler.beginToCompile(Compiler.java:301) at org.aspectj.org.eclipse.jdt.internal.compiler.Compiler.compile(Compiler.java:315) at org.aspectj.ajdt.internal.core.builder.AjBuildManager.performCompilation(AjBuildManager.java:759) at org.aspectj.ajdt.internal.core.builder.AjBuildManager.doBuild(AjBuildManager.java:225) at org.aspectj.ajdt.internal.core.builder.AjBuildManager.batchBuild(AjBuildManager.java:151) at org.aspectj.ajdt.ajc.AjdtCommand.doCommand(AjdtCommand.java:112) at org.aspectj.ajdt.ajc.AjdtCommand.runCommand(AjdtCommand.java:60) at org.aspectj.tools.ajc.Main.run(Main.java:326) at org.aspectj.tools.ajc.Main.runMain(Main.java:240) at org.aspectj.tools.ajc.Main.main(Main.java:83) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at org.aspectj.tools.ajbrowser.Main.compilerMain(Main.java:55) at org.aspectj.tools.ajbrowser.Main.main(Main.java:32)
Sorry, meant to say you get the BCException in addition to a compiler error.
darn itds.
I've fixed the NPE - it now surfaces one message I do like and two that I don't (theres a similar test producing the extraneous messages in the suite and I marked it as a TODO when I created that test that we ought to remove them at some point in the future) - I think removing the NPE could be sufficient for 1.5.0. public boolean Observer.handle(Observable o, Event e) { ^^^^^^^^^^^^^^^^^^^^^^^^^^^ C:\temp\ajcSandbox\ajcTest62104.tmp\pr115038.aj:2:0::0 Cannot make inter-type declarations on type variables, use an interface and declare parents public boolean Observer.handle(Observable o, Event e) { ^^^^^^^^ C:\temp\ajcSandbox\ajcTest62104.tmp\pr115038.aj:2:0::0 Cannot make a static reference to the non-static type Observable public boolean Observer.handle(Observable o, Event e) { ^^^ C:\temp\ajcSandbox\ajcTest62104.tmp\pr115038.aj:2:0::0 Cannot make a static reference to the non-static type Event fix checked in.
rogue error messages removed. fix checked in - will close when build available.
fix available.