[Git][java-team/jboss-classfilewriter][upstream] New upstream version 1.2.5
Markus Koschany (@apo)
gitlab at salsa.debian.org
Wed Sep 8 11:42:23 BST 2021
Markus Koschany pushed to branch upstream at Debian Java Maintainers / jboss-classfilewriter
Commits:
d4f602d3 by Markus Koschany at 2021-09-08T12:37:55+02:00
New upstream version 1.2.5
- - - - -
2 changed files:
- pom.xml
- src/main/java/org/jboss/classfilewriter/annotations/EnumAnnotationValue.java
Changes:
=====================================
pom.xml
=====================================
@@ -9,7 +9,7 @@
<groupId>org.jboss.classfilewriter</groupId>
<artifactId>jboss-classfilewriter</artifactId>
- <version>1.2.4.Final</version>
+ <version>1.2.5.Final</version>
<packaging>jar</packaging>
<description>A bytecode writer that creates .class files at runtime</description>
@@ -39,7 +39,7 @@
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
- <version>4.12</version>
+ <version>4.13.1</version>
<scope>test</scope>
</dependency>
</dependencies>
=====================================
src/main/java/org/jboss/classfilewriter/annotations/EnumAnnotationValue.java
=====================================
@@ -22,6 +22,7 @@ import java.io.IOException;
import org.jboss.classfilewriter.constpool.ConstPool;
import org.jboss.classfilewriter.util.ByteArrayDataOutputStream;
+import org.jboss.classfilewriter.util.DescriptorUtils;
/**
* An enum annotation value
@@ -38,7 +39,7 @@ public class EnumAnnotationValue extends AnnotationValue {
public EnumAnnotationValue(ConstPool constPool, String name, Enum<?> value) {
super(constPool, name);
this.valueIndex = constPool.addUtf8Entry(value.name());
- this.typeIndex = constPool.addUtf8Entry(value.getDeclaringClass().getName());
+ this.typeIndex = constPool.addUtf8Entry(DescriptorUtils.makeDescriptor(value.getDeclaringClass().getName()));
}
public EnumAnnotationValue(ConstPool constPool, String name, String enumType, String enumValue) {
View it on GitLab: https://salsa.debian.org/java-team/jboss-classfilewriter/-/commit/d4f602d33b15ce9f06d120eec89b050f08fdeec9
--
View it on GitLab: https://salsa.debian.org/java-team/jboss-classfilewriter/-/commit/d4f602d33b15ce9f06d120eec89b050f08fdeec9
You're receiving this email because of your account on salsa.debian.org.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/pkg-java-commits/attachments/20210908/7e38db53/attachment.htm>
More information about the pkg-java-commits
mailing list