[jitsi-dev] ZrtpControlImpl.java:376: error: incompatible types: inference variable E#1 has incompatible bounds EnumSet.of(ZRTPCustomInfoCodes.ZRTPEnabledByDefault));


#1

Hi.

I'm a noob trying to clean build libjitsi from within Netbeans on Windows
64. I added all the appropriate jar files and folders, but I'm getting this
parsing error (red mark) on ZrtpControlImpl line 376,
"EnumSet.of(ZRTPCustomInfoCodes.ZRTPEnabledByDefault));" and on
ZRTPTransformEngine line 780,
"EnumSet.of(ZrtpCodes.WarningCodes.WarningCRCmismatch));".

See error (screenshot attached):

Compiling 693 source files to
C:\Users\JohnReedLOL\Documents\NetBeansProjects\JavaApplication7\build\classes
C:\Users\JohnReedLOL\Documents\NetBeansProjects\JavaApplication7\src\org\jitsi\impl\neomedia\transform\zrtp\ZrtpControlImpl.java:376:
error: incompatible types: inference variable E#1 has incompatible bounds
                EnumSet.of(ZRTPCustomInfoCodes.ZRTPEnabledByDefault));
    equality constraints: ZRTPCustomInfoCodes
    upper bounds: Enum<E#2>,Enum<E#1>
  where E#1,E#2 are type-variables:
    E#1 extends Enum<E#1> declared in method <E#1>of(E#1)
    E#2 extends Enum<E#2> declared in class EnumSet
C:\Users\JohnReedLOL\Documents\NetBeansProjects\JavaApplication7\src\org\jitsi\impl\neomedia\transform\zrtp\ZRTPTransformEngine.java:780:
error: incompatible types: inference variable E has incompatible bounds

EnumSet.of(ZrtpCodes.WarningCodes.WarningCRCmismatch));
    equality constraints: WarningCodes
    upper bounds: Enum<CAP#1>,Enum<E>
  where E is a type-variable:
    E extends Enum<E> declared in method <E>of(E)
  where CAP#1 is a fresh type-variable:
    CAP#1 extends Enum<CAP#1> from capture of ?
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
Note: Some messages have been simplified; recompile with -Xdiags:verbose to
get full output
2 errors
C:\Users\JohnReedLOL\Documents\NetBeansProjects\JavaApplication7\nbproject\build-impl.xml:934:
The following error occurred while executing this line:
C:\Users\JohnReedLOL\Documents\NetBeansProjects\JavaApplication7\nbproject\build-impl.xml:265:
Compile failed; see the compiler error output for details.
BUILD FAILED (total time: 34 seconds)