mirror of
https://gitee.com/jmix/cuba.git
synced 2024-12-01 10:47:37 +08:00
PL-7376 UnsupportedOperationException while using RuntimePropertiesFrame
This commit is contained in:
parent
7aa043f76c
commit
8607dd888f
@ -63,7 +63,7 @@ public class DynamicAttributesMetaClass extends MetadataObjectImpl implements Me
|
||||
|
||||
@Override
|
||||
public Class getJavaClass() {
|
||||
return getClass();
|
||||
return Object.class;
|
||||
}
|
||||
|
||||
@Override
|
||||
|
@ -375,15 +375,7 @@ public class MetadataTools {
|
||||
* Determine whether the given metaclass is embeddable.
|
||||
*/
|
||||
public boolean isEmbeddable(MetaClass metaClass) {
|
||||
Class javaClass;
|
||||
try {
|
||||
// RuntimePropertiesMetaClass can throw UnsupportedOperationException
|
||||
javaClass = metaClass.getJavaClass();
|
||||
} catch (UnsupportedOperationException e) {
|
||||
return false;
|
||||
}
|
||||
|
||||
return javaClass.isAnnotationPresent(javax.persistence.Embeddable.class);
|
||||
return metaClass.getJavaClass().isAnnotationPresent(javax.persistence.Embeddable.class);
|
||||
}
|
||||
|
||||
public boolean isCacheable(MetaClass metaClass) {
|
||||
|
Loading…
Reference in New Issue
Block a user