Re: [scala-ide-dev] how to debug ajdt advice ?

7 views
Skip to first unread message

Jin Mingjian

unread,
Jul 19, 2010, 11:58:30 AM7/19/10
to scala-...@googlegroups.com
ajdt has debug tooling support, I used it for simple sources. But I have not chance/timeslot to confirm it for scala-ide.


2010/7/3 David Bernard <david.be...@gmail.com>
Since I enable Scala/AJDT in my main eclipse 3.5 configuration ? I've
got some NPE on pure java project.
It's very annoying.
I would like to investigate and fix the issue (if possible). But I
didn't found (fulltext search the advice/joinpoint into
org.scala-ide.sdt.aspects)

Some advice (not a wordplay) ?

Search In Java / Reference in Project=>

java.lang.NullPointerException
 at org.eclipse.jdt.core.search.SearchPattern.createPattern_aroundBody1$advice(SearchPattern.java:338)
 at org.eclipse.jdt.core.search.SearchPattern.createPattern(SearchPattern.java:1)
 at org.eclipse.jdt.internal.ui.search.JavaSearchQuery.run(JavaSearchQuery.java:124)
 at org.eclipse.search2.internal.ui.InternalSearchUI$InternalSearchJob.run(InternalSearchUI.java:91)
 at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
...

Rename in Workspace =>

java.lang.NullPointerException
       at org.eclipse.jdt.internal.ui.refactoring.actions.RenameJavaElementAction.run_aroundBody1$advice(RenameJavaElementAction.java:35)
       at org.eclipse.jdt.internal.ui.refactoring.actions.RenameJavaElementAction.run(RenameJavaElementAction.java:1)
       at org.eclipse.jdt.internal.ui.refactoring.actions.RenameJavaElementAction.doRun(RenameJavaElementAction.java:141)
       at org.eclipse.jdt.internal.ui.text.correction.proposals.RenameRefactoringProposal.apply(RenameRefactoringProposal.java:59)
       at org.eclipse.jface.text.contentassist.CompletionProposalPopup.insertProposal(CompletionProposalPopup.java:931)
       at org.eclipse.jface.text.contentassist.CompletionProposalPopup.insertSelectedProposalWithMask(CompletionProposalPopup.java:877)
       at org.eclipse.jface.text.contentassist.CompletionProposalPopup.verifyKey(CompletionProposalPopup.java:1304)
       at org.eclipse.jface.text.contentassist.ContentAssistant$InternalListener.verifyKey(ContentAssistant.java:806)
       at org.eclipse.jface.text.TextViewer$VerifyKeyListenersManager.verifyKey(TextViewer.java:489)
       at org.eclipse.swt.custom.StyledTextListener.handleEvent(StyledTextListener.java:62)
       at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
       at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1176)
       at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1200)
       at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1185)
       at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:1025)
       at org.eclipse.swt.custom.StyledText.handleKeyDown(StyledText.java:5840)
       at org.eclipse.swt.custom.StyledText$7.handleEvent(StyledText.java:5542)
...

/davidB

Miles Sabin

unread,
Jul 19, 2010, 12:08:33 PM7/19/10
to scala-...@googlegroups.com
On Fri, Jul 2, 2010 at 5:47 PM, David Bernard
<david.be...@gmail.com> wrote:
> Since I enable Scala/AJDT in my main eclipse 3.5 configuration ? I've
> got some NPE on pure java project.
> It's very annoying.
> I would like to investigate and fix the issue (if possible). But I
> didn't found (fulltext search the advice/joinpoint into
> org.scala-ide.sdt.aspects)
>
> Some advice (not a wordplay) ?

This looks like advice provided by
org.eclipse.contribution.weaving.jdt which is one of the bundles we've
borrowed from AJDT. If you grab the source from the AJDT update site
you should be able to find the advice on RenameJavaElementAction and
set a breakpoint on it.

Cheers,


Miles

--
Miles Sabin
tel: +44 7813 944 528
gtalk: mi...@milessabin.com
skype: milessabin
http://www.chuusai.com/
http://twitter.com/milessabin

Reply all
Reply to author
Forward
0 new messages