Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[jdt-dev] Recent changes in JDT Core regarding line numbers for annotated constructors?

Hallo JDT Core developers!

I apologise for not having a good explanation or good reproducer for
this question. I am trying to debug this, but have not gotten a handle
on this issue yet. So I am asking a question wich is way more generic
than I want it to be:

Has recently, maybe in the beta-22 branch or another change for 3.37.0,
anything changed that would block or change the way in which I can get a
line number for an annotated constructor for a compiler message? For the
AspectJ compiler, today I have refreshed the JDT Core fork from
upstream, and since then in AspectJ I do not get line numbers for
annotated methods anymore, i.e. I cannot report them in compiler
warnings or errors anymore. As nothing in AspectJ has changed, I suppose
that it must be some subtle change in JDT Core. I would be grateful for
hints and educated guesses about where I ought to look to find the root
cause and possible fix it.

Just to avoid any possible misunderstandings: What do I mean by
"annotated constructor"? Something like this:

------------------------------------------------------------------------

public class C {
  @Marker public C() {}
}

I am expecting the line number for the annotated method to be reported as 2.

------------------------------------------------------------------------

public class C {
  @Marker
  public C() {}
}

I am expecting the line number for the annotated method to be reported as 3.

------------------------------------------------------------------------

Regards
-- 
Alexander Kriegisch
https://scrum-master.de


Back to the top