Uploaded image for project: 'Maven'
  1. Maven
  2. MNG-7910

DefaultProfileSelector empty ctor uses immutable list

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 4.0.0-alpha-7
    • 4.0.0-alpha-8, 4.0.0
    • Core
    • None

    Description

      It uses immutable list and while it looks it allows, actually fails on constructs like this:

      new DefaultProfileSelector()
                      .addProfileActivator(new JdkVersionProfileActivator())
                      .addProfileActivator(new PropertyProfileActivator())
      

      As default ctor creates immutable list, but API kinda suggests this is ok.

      Attachments

        Issue Links

          Activity

            People

              cstamas Tamas Cservenak
              cstamas Tamas Cservenak
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: