Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/maven.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
strategy:
matrix:
os: [ ubuntu-latest ]
java-version: [ 11.0.3, 11 ]
java-version: [ 25 ]
steps:
- uses: actions/checkout@v2
- name: Set up JDK ${{ matrix.java-version }}
Expand Down
4 changes: 2 additions & 2 deletions Changes.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
### Changes

### version 3.31
### version 3.31.0 on April 20, 2026

* GitHub PR #480, #484, #486, #491, #492
* GitHub PR #480, #484, #486, #491, #492, #495, #506

### version 3.30.2 on December 25, 2023

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
Java bytecode engineering toolkit
### [Javassist version 3](http://www.javassist.org)

Copyright (C) 1999-2023 by Shigeru Chiba, All rights reserved.
Copyright (C) 1999-2026 by Shigeru Chiba, All rights reserved.

Javassist (JAVA programming ASSISTant) makes Java bytecode manipulation
simple. It is a class library for editing bytecodes in Java; it enables Java
Expand Down
2 changes: 1 addition & 1 deletion build.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

<project name="javassist" default="jar" basedir=".">

<property name="dist-version" value="javassist-3.30.2-GA"/>
<property name="dist-version" value="javassist-3.31.0-GA"/>

<property environment="env"/>
<property name="target.jar" value="javassist.jar"/>
Expand Down
Binary file modified javassist.jar
Binary file not shown.
48 changes: 11 additions & 37 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

<groupId>org.javassist</groupId>
<artifactId>javassist</artifactId>
<version>3.30.2-GA</version>
<version>3.31.0-GA</version>
<packaging>bundle</packaging>
<name>Javassist</name>
<description>
Expand Down Expand Up @@ -295,14 +295,23 @@ Copyright (C) ${project.inceptionYear}- Shigeru Chiba. All Rights Reserved.</i>]
<!-- obviously we need to use the Sonatype staging repo for upload -->
<distributionManagement>
<repository>
<id>sonatype-releases-repository</id>
<id>central</id>
<name>Sonatype Releases Repository</name>
<url>https://oss.sonatype.org/service/local/staging/deploy/maven2</url>
</repository>
</distributionManagement>
<!-- we need to be able to sign the jars we install -->
<build>
<plugins>
<plugin>
<groupId>org.sonatype.central</groupId>
<artifactId>central-publishing-maven-plugin</artifactId>
<version>0.9.0</version>
<extensions>true</extensions>
<configuration>
<publishingServerId>central</publishingServerId>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-gpg-plugin</artifactId>
Expand All @@ -324,40 +333,5 @@ Copyright (C) ${project.inceptionYear}- Shigeru Chiba. All Rights Reserved.</i>]
</plugins>
</build>
</profile>
<!-- profiles to add tools jar containing com.sun.jdi code
needed by sample code
-->
<profile>
<id>default-tools</id>
<activation>
<jdk>[,1.8]</jdk>
</activation>
<dependencies>
<dependency>
<groupId>com.sun</groupId>
<artifactId>tools</artifactId>
<version>${java.version}</version>
<scope>system</scope>
<optional>true</optional>
<systemPath>${java.home}/../lib/tools.jar</systemPath>
</dependency>
</dependencies>
</profile>
<profile>
<id>java9-tools</id>
<activation>
<jdk>[1.9,]</jdk>
</activation>
<dependencies>
<dependency>
<groupId>com.sun</groupId>
<artifactId>tools</artifactId>
<version>${java.version}</version>
<scope>system</scope>
<optional>true</optional>
<systemPath>${java.home}/lib/jrt-fs.jar</systemPath>
</dependency>
</dependencies>
</profile>
</profiles>
</project>
4 changes: 2 additions & 2 deletions src/main/javassist/CtClass.java
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ public abstract class CtClass {
/**
* The version number of this release.
*/
public static final String version = "3.30.2-GA";
public static final String version = "3.31.0-GA";

private int linesCount = 0;

Expand All @@ -82,7 +82,7 @@ public abstract class CtClass {
*/
public static void main(String[] args) {
System.out.println("Javassist version " + CtClass.version);
System.out.println("Copyright (C) 1999-2023 Shigeru Chiba."
System.out.println("Copyright (C) 1999-2026 Shigeru Chiba."
+ " All Rights Reserved.");
}

Expand Down
2 changes: 1 addition & 1 deletion src/test/javassist/bytecode/BytecodeTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -313,7 +313,7 @@ public void testRenameClass() throws Exception {

public void testDeprecatedAttribute() throws Exception {
CtClass cc = loader.get("java.lang.Thread");
CtMethod m = cc.getDeclaredMethod("suspend");
CtMethod m = cc.getDeclaredMethod("stop");
MethodInfo minfo = m.getMethodInfo();
DeprecatedAttribute ainfo
= (DeprecatedAttribute)minfo.getAttribute(DeprecatedAttribute.tag);
Expand Down