Uploaded image for project: 'JBoss Modules'
  1. JBoss Modules
  2. MODULES-395

The ModuleSpec builder does not make honor to the builder API documentation without adding AllPermissions by default

This issue belongs to an archived project. You can view it, but you can't modify it. Learn more

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 1.9.2.Final
    • 1.9.1.Final, 2.0.0.Final
    • Core
    • None

      It looks like ModuleSpec does not make honor to the builder API documentation:

      /**
      * Set the permission collection for this module specification.  If none is given, a collection implying
      * {@link AllPermission} is assumed.
      *
      * @param permissionCollection the permission collection
      * @return this builder
      */
      ModuleSpec.Builder setPermissionCollection(PermissionCollection permissionCollection);
      

      My interpretation is if we do not add any PermissionCollection, then AllPermission is assumed. However, when we instantiate a ModuleBuilder the default permission collection is always null, and this ends up creating a ConcreteModuleSpec without permissions.

              yborgess1@redhat.com Yeray Borges Santana
              yborgess1@redhat.com Yeray Borges Santana
              Archiver:
              rhn-support-ceverson Clark Everson

                Created:
                Updated:
                Resolved:
                Archived: