Summary: | crash weaving staticinitialization | ||||||
---|---|---|---|---|---|---|---|
Product: | [Tools] AspectJ | Reporter: | mauro <mauro> | ||||
Component: | Compiler | Assignee: | AJDT-inbox <AJDT-inbox> | ||||
Status: | RESOLVED FIXED | QA Contact: | |||||
Severity: | critical | ||||||
Priority: | P1 | CC: | aclement, andrew.eisenberg | ||||
Version: | DEVELOPMENT | ||||||
Target Milestone: | 1.6.3 | ||||||
Hardware: | PC | ||||||
OS: | Linux | ||||||
Whiteboard: | |||||||
Attachments: |
|
can you tell us what error you get? what is the stack trace? (In reply to comment #1) > can you tell us what error you get? what is the stack trace? java.lang.NullPointerException at org.aspectj.weaver.model.AsmRelationshipProvider.getNode(AsmRelationshipProvider.java:437) at org.aspectj.weaver.model.AsmRelationshipProvider.adviceMunger(AsmRelationshipProvider.java:372) at org.aspectj.weaver.bcel.BcelWorld.reportMatch(BcelWorld.java:132) at org.aspectj.weaver.Shadow.implementMungers(Shadow.java:614) at org.aspectj.weaver.Shadow.implement(Shadow.java:527) at org.aspectj.weaver.bcel.BcelCl ... staticinit.print ()V | RETURN staticinitialization(void MyType.<clinit>()) end static void <clinit>() end public class MyType Do you consistently get this error, or does it happen only sometimes? I have tried your test case and cannot reproduce, so please provide more information. (In reply to comment #3) > Do you consistently get this error, or does it happen only sometimes? > the error is always there... I switched back to Version: 1.6.1.20081104192500 AspectJ version: 1.6.3.20081028135200 and everything works fine... I created a workspace with only that file in it... so I don't know what details could be useful... OK. Realized that I wasn't using the same version. Just tried it again from the latest dev branch and I am able to reproduce this problem on the code supplied. yey, just the stack trace I wanted to work on today, thanks for the simple test program. test and fix is in AJ, will be in AJDT in a bit. bit surprised none of our own tests triggered this situation, hmmm. (In reply to comment #7) > yey, just the stack trace I wanted to work on today happy to be usefull... may I suggest to use the time you saved ;) to take a look at bug 253751 that really hurts me? |
Created attachment 120313 [details] simply using staticinitialization Build ID: M20080911-1700 Steps To Reproduce: see attachment More information: AJDT Version: 1.6.2.20081210195409 AspectJ version: 1.6.3.20081210163000 the same when not using annotations