You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tomee.apache.org by db...@apache.org on 2020/06/14 19:14:17 UTC
[tomee-patch-plugin] branch master updated: Don't modify bytecode
of patched classes
This is an automated email from the ASF dual-hosted git repository.
dblevins pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/tomee-patch-plugin.git
The following commit(s) were added to refs/heads/master by this push:
new c0e9f90 Don't modify bytecode of patched classes
c0e9f90 is described below
commit c0e9f9009e3c38baa576aad1fba59d442ace8e59
Author: David Blevins <da...@gmail.com>
AuthorDate: Sun Jun 14 10:07:38 2020 -0700
Don't modify bytecode of patched classes
---
.../src/main/java/org/apache/tomee/patch/core/Transformation.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tomee-patch-core/src/main/java/org/apache/tomee/patch/core/Transformation.java b/tomee-patch-core/src/main/java/org/apache/tomee/patch/core/Transformation.java
index 8da04f9..384ca65 100644
--- a/tomee-patch-core/src/main/java/org/apache/tomee/patch/core/Transformation.java
+++ b/tomee-patch-core/src/main/java/org/apache/tomee/patch/core/Transformation.java
@@ -122,7 +122,7 @@ public class Transformation {
zipOutputStream.putNextEntry(newEntry);
// Run any transformations on these classes as well
- scanClass(IO.read(clazz.getFile()), zipOutputStream);
+ IO.copy(IO.read(clazz.getFile()), zipOutputStream);
zipOutputStream.closeEntry();
clazz.applied();