Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8210121

Build fails intermittently with incompatible equality constraints

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Cannot Reproduce
    • Icon: P2 P2
    • tbd
    • 8, 12, 13
    • tools
    • x86_64
    • os_x

      src/java.base/share/classes/jdk/internal/jrtfs/ExplodedImage.java:62: error: incompatible types: inference variable V#1 has incompatible equality constraints String,ExplodedImage.PathNode,K#1,K#2,V#2
           private final Map<String, PathNode> nodes = Collections.synchronizedMap(new HashMap<>());
                                                                                  ^
         where V#1,K#1,K#2,V#2 are type-variables:
           V#1 extends Object declared in method <K#1,V#1>synchronizedMap(Map<K#1,V#1>)
           K#1 extends Object declared in method <K#1,V#1>synchronizedMap(Map<K#1,V#1>)
           K#2 extends Object declared in class HashMap
           V#2 extends Object declared in class HashMap
       1 error

            vromero Vicente Arturo Romero Zaldivar
            mikael Mikael Vidstedt
            Votes:
            0 Vote for this issue
            Watchers:
            9 Start watching this issue

              Created:
              Updated:
              Resolved: