Skip to content

Commit

Permalink
Removed ClassMetaData dependency from ProxySetupStateManager (apache#1
Browse files Browse the repository at this point in the history
…#275147)
  • Loading branch information
EmanueleGiannuzzi committed Jul 13, 2022
1 parent c3da147 commit 2d5b74f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1925,7 +1925,7 @@ protected void resolveMeta(boolean runtime) {
// if this is runtime, create a pc instance and scan it for comparators
if (runtime && !Modifier.isAbstract(_type.getModifiers())) {
ProxySetupStateManager sm = new ProxySetupStateManager();
sm.setProxyData(PCRegistry.newInstance(_type, sm, false), this);
sm.setProxyData(PCRegistry.newInstance(_type, sm, false), this.getFields());
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,7 @@ class ProxySetupStateManager

private Object _object = null;

public void setProxyData(PersistenceCapable pc, ClassMetaData meta) {
FieldMetaData[] fmds = meta.getFields();
public void setProxyData(PersistenceCapable pc, FieldMetaData[] fmds) {
for (FieldMetaData fmd : fmds) {
// This method only gets called for concrete types. We need to do this processing for fields that might
// not be owned by pc.
Expand Down

0 comments on commit 2d5b74f

Please sign in to comment.