Uploaded image for project: 'StoRM'
  1. StoRM
  2. STOR-867

StoRM Backend 1.11.10 will not start on Java 6/7 when storage area has a default acl configured

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Blocker Blocker
    • 1.11.11
    • 1.11.10
    • backend
    • Security Level: Public (Visbile by non-authn users.)
    • None

      Covariance issue

      Backend error is:

      java.util.concurrent.ConcurrentHashMap.keySet()Ljava/util/concurrent/ConcurrentHashMap$KeySetView; at line 76 (LocalGroups.java)
      java.lang.NoSuchMethodError: java.util.concurrent.ConcurrentHashMap.keySet()Ljava/util/concurrent/ConcurrentHashMap$KeySetView;
      

      Java 1.6 and 1.7 ConcurrentHashMap#keySet() returns Set<K>
      http://docs.oracle.com/javase/6/docs/api/java/util/concurrent/ConcurrentHashMap.html#keySet()
      http://docs.oracle.com/javase/7/docs/api/java/util/concurrent/ConcurrentHashMap.html#keySet()

      while Java 1.8 returns ConcurrentHashMap.KeySetView<K,V>:
      http://docs.oracle.com/javase/8/docs/api/java/util/concurrent/ConcurrentHashMap.html#keySet--

      backend code is compiled with Java 1.8 with source and target 1.6

            Unassigned Unassigned
            vianello Enrico Vianello
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: