Details
-
Bug
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
jtsk_2.1
-
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
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.A preferred list must contain either a default preferred entry or at least one named preferred entry