Uploaded image for project: 'River (Retired)'
  1. River (Retired)
  2. RIVER-24

PreferredListGen can create illegal PREFERRED.LIST

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • jtsk_2.1
    • River_2.1.2
    • com_sun_jini_tool
    • None

    Description

      com.sun.jini.tool.PreferredListGen can generate an illegal PREFERRED.LIST when no preferred default entry is specified and there are no individual preferred entries listed. In this case the utility should add an preferred default entry of false itself.

      One can also argue whether the semantics for net.jini.loader.pref.PreferredClassLoader

      A preferred list must contain either a default preferred entry or at least one named preferred entry

      are not a bit too strict given the fact that no preferred default entry means that all non-matching classes in the list are by default non-preferred, but I guess fixing PreferredListGen is easier than going for a specification change which might be logical anyway although not clear to me at this point.

      Attachments

        1. RIVER-24.patch
          1 kB
          Mark Brouwer

        Activity

          People

            marbro Mark Brouwer
            marbro Mark Brouwer
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: