Skip to content

Revisit spring-aspects 4.0.0 dependency on AspectJ 1.8.0.M1 [SPR-11248] #15873

Closed

Description

@spring-projects-issues

Mark Janssen opened SPR-11248 and commented

spring-aspects 4.0.0 uses AspectJ 1.8.0.M1 which is compatible only with Java 8, which is unreleased at this time (http://eclipse.org/aspectj/doc/released/README-180.html).

A workaround is to locally exclude org.aspectj dependencies from the spring-aspects dependency.


Affects: 4.0 GA

Reference URL: 5ccbc80

Issue Links:

Activity

  1. spring-projects-issues commented on Dec 19, 2013

    @spring-projects-issues
    CollaboratorAuthor

    Juergen Hoeller commented

    On which basis do you assume that AspectJ 1.8.0.M1 is only compatible with Java 8? It should run fine on JDK 1.6 and 1.7 as well... Did you encounter concrete issues at runtime?

    Juergen

  2. spring-projects-issues commented on Dec 19, 2013

    @spring-projects-issues
    CollaboratorAuthor

    Mark Janssen commented

    By looking at the README linked in the original file.

    Apart from that, I'm really not looking forward to using milestone release dependencies in production.

  3. spring-projects-issues commented on Dec 19, 2013

    @spring-projects-issues
    CollaboratorAuthor

    Juergen Hoeller commented

    Point taken about the milestone nature of AspectJ 1.8; however, aside from the early Java 8 support, it's basically identical to AspectJ 1.7. Andy Clement, the AspectJ project lead, confirms that there are no issues with running it on JDK 1.6 and 1.7 either.

    That said, we are generally aiming for a dependency on a production release. If that still takes a while, we might have to officially document how to replace that dependency with AspectJ 1.7 for anyone concerned there.

    Note that the spring-aspects module itself has no dependencies on AspectJ 1.8 per se; it just happens to be built against it. We officially support running against AspectJ 1.6 and 1.7 as well, next to AspectJ 1.8 (even M1).

    Juergen

  4. spring-projects-issues commented on Dec 19, 2013

    @spring-projects-issues
    CollaboratorAuthor

    Andy Clement commented

    Juergen pinged me to chip-in (as AspectJ project lead). Just confirming what has been said really. AspectJ 1.8.0.M1 passes all the same tests as the early 1.7 levels. The AspectJ testsuite is thousands of tests and they are the only thing used to verify the quality of a build. Every snapshot build must pass them all. And then a milestone is just a snapshot with a special name and a release is just a milestone with a special name. There are tests for numerous levels of Java, so AspectJ 1.8 will happily build 1.5/1.6/1.7/1.8 source code.

    Will it have bugs, well yes, because it was based on a work-in-progress Eclipse Java8 compiler, but unless you are using it to build Java8 code you will be unlikely to trigger them. The Eclipse compiler has to pass 10s of thousands of tests for each build.

    I do, however, understand the hesitancy around this being a milestone dependency but I can't make AspectJ 1.8 a release until Java8 is released.

  5. spring-projects-issues commented on Dec 23, 2013

    @spring-projects-issues
    CollaboratorAuthor

    Juergen Hoeller commented

    Let's consider this as resolved for the time being: either use AspectJ 1.8.0.M1 which we fully support - for the purposes of the spring-aspects module, that is - on Java 6 and 7 as well. Or explicitly switch that dependency to AspectJ 1.7 which Spring 4's spring-aspects module remains fully compatible with at runtime.

    Juergen

  6. added this to the 4.0.1 milestone on Jan 11, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

type: task

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions