Skip to content

Commit

Permalink
wurde vergessen
Browse files Browse the repository at this point in the history
  • Loading branch information
nPraml committed Nov 20, 2024
1 parent ca36b9e commit 52c0099
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,6 @@ interface Jakarta {
String TYPEQUERYBEAN_ANNOTATION = "Lio/ebean/typequery/TypeQueryBean;";
String DOCSTORE_ANNOTATION = "Lio/ebean/annotation/DocStore;";
String NORMALIZE_ANNOTATION = "Lio/ebean/annotation/Normalize;";
String DOCSTORE_ANNOTATION = "Lio/ebean/annotation/DocStore;";
String EMBEDDABLE_ANNOTATION = "Ljavax/persistence/Embeddable;";
String MAPPEDSUPERCLASS_ANNOTATION = "Ljavax/persistence/MappedSuperclass;";
String ENTITY_EXTENSION_ANNOTATION = "Lio/ebean/bean/extend/EntityExtension;";
String ENTITY_EXTENSION_SUPERCLASS_ANNOTATION = "Lio/ebean/bean/extend/EntityExtensionSuperclass;";

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,9 +58,7 @@ public enum ProfileLineNumberMode {
private final int accProtected;
private final int accPrivate;
private final int enhancementVersion;
private final int ebeanInternalVersion;
private final String postJsonGetter;

private SummaryInfo summaryInfo;

public EnhanceContext(ClassBytesReader classBytesReader, String agentArgs, AgentManifest manifest) {
Expand All @@ -76,7 +74,6 @@ public EnhanceContext(ClassBytesReader classBytesReader, String agentArgs, Agent
this.postJsonGetter = manifest.postJsonGetter();
this.enableEntityFieldAccess = manifest.isEnableEntityFieldAccess();
this.profileLineNumberMode = manifest.profileLineMode();
this.postJsonGetter = manifest.getPostJsonGetter();
this.accPublic = manifest.accPublic();
this.accProtected = manifest.accProtected();
this.accPrivate = manifest.accPrivate();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -584,7 +584,7 @@ private void addSet(ClassVisitor cw, ClassMeta classMeta) {
int iLoadOpcode = asmType.getOpcode(Opcodes.ILOAD);
int iStoreOpcode = asmType.getOpcode(Opcodes.ISTORE);

MethodVisitor originalMv = cw.visitMethod(ACC_PROTECTED, setMethodName, setMethodDesc, null, null);
MethodVisitor originalMv = cw.visitMethod(classMeta.accAccessor(), setMethodName, setMethodDesc, null, null);

GeneratorAdapter mv = new GeneratorAdapter(originalMv, ACC_PROTECTED, setMethodName, setMethodDesc);
mv.visitCode();
Expand All @@ -599,7 +599,7 @@ private void addSet(ClassVisitor cw, ClassMeta classMeta) {
mv.visitVarInsn(iLoadOpcode, 1);
for (Type normalizer : normalizers) {
mv.visitMethodInsn(INVOKESTATIC, normalizer.getInternalName(), "normalize",
"(" + asmType.getDescriptor() +")" + asmType.getDescriptor(), false);
"(" + asmType.getDescriptor() + ")" + asmType.getDescriptor(), false);
}
mv.visitVarInsn(iStoreOpcode, 1);
} else {
Expand Down

0 comments on commit 52c0099

Please sign in to comment.