maven-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andreas Gudian <andreas.gud...@gmail.com>
Subject Re: Why can't dependency plugin "see" statics /and staticimports
Date Wed, 25 Nov 2015 07:25:56 GMT
AFAIR, such constants (primitives and Strings) are inlined by the compiler
- and the dependeny analyzer works on the bytecode and not the sources,
right?



Am Mittwoch, 25. November 2015 schrieb Jochen Wiedmann :

> What exactly is it, you'd like to detect?
>
>
> On Wed, Nov 25, 2015 at 8:11 AM, Kristian Rosenvold
> <kristian.rosenvold@gmail.com <javascript:;>> wrote:
> > I poked around in the depdenedncy analyzer code to see if I could make
> > it "see" the following code:
> >
> > Module 1:
> > public class Test2 {
> >     public static final int AZAZ = 42;
> > }
> >
> > Module 2:
> >
> > import foo.Test2;
> >
> > public class BarMain
> > {
> >     public static void main(String[] args) {
> >         System.out.println("AZ " + Test2.AZAZ);
> >     }
> > }
> >
> > Isn't this possible to detect or am I just a total n00b with asm ??
> >
> >
> > Kristian
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org <javascript:;>
> > For additional commands, e-mail: dev-help@maven.apache.org
> <javascript:;>
> >
>
>
>
> --
> The next time you hear: "Don't reinvent the wheel!"
>
>
> http://www.keystonedevelopment.co.uk/wp-content/uploads/2014/10/evolution-of-the-wheel-300x85.jpg
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org <javascript:;>
> For additional commands, e-mail: dev-help@maven.apache.org <javascript:;>
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message