Fix for compilation error in Fedora Trying to build this for Fedora RPM results in a compilation failure without this patch. The error states that, e.g. Incompatible operand types Class<capture#2-of ? extends IDEBeanTypeProxy> and Class<Boolean> Signed-off-by: Gerard Ryan <gerard@ryan.lt>
diff --git a/plugins/org.eclipse.jem.proxy/proxyide/org/eclipse/jem/internal/proxy/ide/IDEStandardBeanProxyFactory.java b/plugins/org.eclipse.jem.proxy/proxyide/org/eclipse/jem/internal/proxy/ide/IDEStandardBeanProxyFactory.java index 85a852b..188da8a 100644 --- a/plugins/org.eclipse.jem.proxy/proxyide/org/eclipse/jem/internal/proxy/ide/IDEStandardBeanProxyFactory.java +++ b/plugins/org.eclipse.jem.proxy/proxyide/org/eclipse/jem/internal/proxy/ide/IDEStandardBeanProxyFactory.java
@@ -106,24 +106,25 @@ if (!nonPrimitiveProxy.isValid()) return nonPrimitiveProxy; IDEBeanTypeProxy type = (IDEBeanTypeProxy) nonPrimitiveProxy.getTypeProxy(); - if (type.getClass() == Boolean.class) + if (Boolean.class.equals(type.getClass())) { return this.createBeanProxyWith(((IBooleanBeanProxy) nonPrimitiveProxy).booleanValue()); - else if (type.getClass() == Byte.class) + } else if (Byte.class.equals(type.getClass())) { return this.createBeanProxyWith(((INumberBeanProxy) nonPrimitiveProxy).byteValue()); - else if (type.getClass() == Character.class) + } else if (Character.class.equals(type.getClass())) { return this.createBeanProxyWith(((ICharacterBeanProxy) nonPrimitiveProxy).charValue()); - else if (type.getClass() == Double.class) + } else if (Double.class.equals(type.getClass())) { return this.createBeanProxyWith(((INumberBeanProxy) nonPrimitiveProxy).doubleValue()); - else if (type.getClass() == Float.class) + } else if (Float.class.equals(type.getClass())) { return this.createBeanProxyWith(((INumberBeanProxy) nonPrimitiveProxy).floatValue()); - else if (type.getClass() == Integer.class) + } else if (Integer.class.equals(type.getClass())) { return this.createBeanProxyWith(((INumberBeanProxy) nonPrimitiveProxy).intValue()); - else if (type.getClass() == Long.class) + } else if (Long.class.equals(type.getClass())) { return this.createBeanProxyWith(((INumberBeanProxy) nonPrimitiveProxy).longValue()); - else if (type.getClass() == Short.class) + } else if (Short.class.equals(type.getClass())) { return this.createBeanProxyWith(((INumberBeanProxy) nonPrimitiveProxy).shortValue()); - else + } else { return nonPrimitiveProxy; + } } /**