-
Notifications
You must be signed in to change notification settings - Fork 95
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
* TAP5-2769 Upgrade ASM to 9.6 to allow running on Java 21 - Remove the copy of ASM - Add project 'plastic-asm' to be the shadowed version of ASM 9.6 - Add a version property for ASM in the build * TAP5-2769 Upgrade ASM to 9.6 to allow running on Java 21 - Inject a Tapestry specific TapestryAnnotationNode into ASM to get access to the static helper instead of relying on reflection --------- Co-authored-by: Chris Poulsen <[email protected]>
- Loading branch information
1 parent
8c6cc2d
commit ecb81b8
Showing
146 changed files
with
36 additions
and
47,651 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
plugins { | ||
id 'com.github.johnrengelman.shadow' version '7.1.2' | ||
} | ||
|
||
description = "Shadow asm for plastic" | ||
|
||
jar { | ||
enabled = false | ||
} | ||
|
||
shadowJar { | ||
relocate("org.objectweb.asm", "org.apache.tapestry5.internal.plastic.asm") | ||
archiveClassifier = "" | ||
} | ||
|
||
dependencies { | ||
implementation("org.ow2.asm:asm-commons:${versions.asm}") | ||
implementation("org.ow2.asm:asm-util:${versions.asm}") | ||
} |
12 changes: 12 additions & 0 deletions
12
plastic-asm/src/main/java/org/objectweb/asm/tree/TapestryAnnotationNode.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
package org.objectweb.asm.tree; | ||
|
||
import org.objectweb.asm.AnnotationVisitor; | ||
|
||
public class TapestryAnnotationNode extends AnnotationNode { | ||
public TapestryAnnotationNode(String desc) { | ||
super(desc); | ||
} | ||
|
||
public static void accept(AnnotationVisitor annotationVisitor, String name, Object value) { | ||
AnnotationNode.accept(annotationVisitor, name, value);} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
157 changes: 0 additions & 157 deletions
157
plastic/src/external/java/org/apache/tapestry5/internal/plastic/asm/AnnotationVisitor.java
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.