Skip to content

Java 21 #261

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 29 commits into from
Dec 2, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
29 commits
Select commit Hold shift + click to select a range
70ba99c
Upgrade CI build to JDK 21
kriegaex Sep 26, 2023
ff92343
Bump JDT Core to 1.9.21-SNAPSHOT
kriegaex Sep 26, 2023
1bd4f92
CI build: remove JDK 11 build, switch 21 to 21-ea
kriegaex Sep 27, 2023
5988c28
Remove old '.cvsignore' files
kriegaex Sep 27, 2023
e39b13f
Ignore AspectJ core dumps
kriegaex Sep 27, 2023
319e153
AjLookupEnvironment: add new phase CONNECT_TYPE_HIERARCHY2
kriegaex Sep 28, 2023
3e81ed5
AjLookupEnvironment: readability refactoring
kriegaex Oct 1, 2023
73b36b1
AntSpec: Improve filter for warning "Archived non-system classes are …
kriegaex Oct 1, 2023
19a414b
Bump ASM to 9.6 (new Opcodes.V22 constant for Java 22)
kriegaex Oct 5, 2023
3533dcd
Beautify sanity tests using bytecode level constants
kriegaex Oct 5, 2023
78ee9ce
Add test infrastructure for Java 21 (WIP)
kriegaex Oct 5, 2023
39c5da6
AjcTestCase: Make sure main methods can be called in Java 21
kriegaex Oct 5, 2023
99f426e
Move some 1.9.20.1 bug tests to correct directory
kriegaex Oct 5, 2023
72171c3
Make all existing tests run on JDK 21
kriegaex Oct 5, 2023
3bca852
Adjust to latest changes in JDT Core
kriegaex Nov 1, 2023
f0c0088
Switch CI build to Temurin JDK 21 final (from EA)
kriegaex Nov 1, 2023
70f3c09
Enable some tests after J19 problems were fixed for J21
kriegaex Nov 5, 2023
05de091
Release milestone 1.9.21.M1
kriegaex Nov 19, 2023
8e8d81c
Set version 1.9.21-SNAPSHOT
kriegaex Nov 19, 2023
021fcf1
RELEASE.md: Add '--add-opens' info for Nexus Staging 'rc:release'
kriegaex Nov 19, 2023
9e09610
AjcTaskTest: unwrap redundant if statement
kriegaex Nov 21, 2023
37f3f6c
AjcTaskTest: Be more lenient with aspectjrt version warning
kriegaex Nov 21, 2023
93511ae
Add missing file RecordPatternsPreview1ExhaustivenessOK1.java for JDK 21
kriegaex Nov 27, 2023
6f2702e
AllTests19 suite: add AllTestsAspectJ1921
kriegaex Nov 27, 2023
4714dea
Reactivate some tests on JDK 21 after upstream fix
kriegaex Nov 27, 2023
e761f61
Bump AJC version string to c13b03ceabf0c1
kriegaex Nov 27, 2023
8532087
Adjust to API changes in ECJ 4dc7b558 (01Dec2023)
kriegaex Dec 1, 2023
00b87d7
Bump ECJ to 23b713ce (01Dec2023)
kriegaex Dec 2, 2023
dfd6e38
Bump JDT Core to 1.9.21.RC1
kriegaex Dec 2, 2023
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 @@ -20,7 +20,7 @@ jobs:
fail-fast: false
matrix:
# Check for available Temurin releases on https://adoptium.net/releases.html
java: [ 11, 17, 20 ]
java: [ 17, 21 ]

runs-on: ubuntu-latest

Expand Down
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,9 @@ bin/
/lib/regexp/
/lib/saxon/

# AspectJ core dumps
ajcore.*.txt

# When using a RAM disk to speed up development, see how-to in docs/developer/ram-disk/settings-ramdisk.xml
/.mvn/maven.config
/.mvn/settings-ramdisk.xml
1 change: 0 additions & 1 deletion ajde.core/testdata/BuildCancelling/.cvsignore

This file was deleted.

1 change: 0 additions & 1 deletion ajde.core/testdata/coverage/.cvsignore

This file was deleted.

1 change: 0 additions & 1 deletion ajde.core/testdata/figures-coverage/.cvsignore

This file was deleted.

8 changes: 0 additions & 8 deletions ajde.core/testdata/figures-coverage/figures/.cvsignore

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

2 changes: 0 additions & 2 deletions ajde/src/.cvsignore

This file was deleted.

2 changes: 0 additions & 2 deletions ajde/testdata/AspectJBuildManagerTest/.cvsignore

This file was deleted.

2 changes: 0 additions & 2 deletions ajde/testdata/LstBuildConfigManagerTest/.cvsignore

This file was deleted.

2 changes: 0 additions & 2 deletions ajde/testdata/StructureModelRegressionTest/.cvsignore

This file was deleted.

1 change: 0 additions & 1 deletion ajde/testdata/StructureModelRegressionTest/pkg/.cvsignore

This file was deleted.

1 change: 0 additions & 1 deletion ajde/testdata/StructureViewManagerTest/.cvsignore

This file was deleted.

1 change: 0 additions & 1 deletion ajde/testdata/bug-83565/.cvsignore

This file was deleted.

1 change: 0 additions & 1 deletion ajde/testdata/examples/.cvsignore

This file was deleted.

1 change: 0 additions & 1 deletion ajde/testdata/examples/configs/.cvsignore

This file was deleted.

1 change: 0 additions & 1 deletion ajde/testdata/examples/coverage/.cvsignore

This file was deleted.

1 change: 0 additions & 1 deletion ajde/testdata/examples/declare-warning/.cvsignore

This file was deleted.

1 change: 0 additions & 1 deletion ajde/testdata/examples/figures-coverage/.cvsignore

This file was deleted.

8 changes: 0 additions & 8 deletions ajde/testdata/examples/figures-coverage/figures/.cvsignore

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

1 change: 0 additions & 1 deletion ajde/testdata/examples/figures-demo/.cvsignore

This file was deleted.

1 change: 0 additions & 1 deletion ajde/testdata/examples/spacewar/.cvsignore

This file was deleted.

1 change: 0 additions & 1 deletion ajde/testdata/examples/spacewar/spacewar/.cvsignore

This file was deleted.

1 change: 0 additions & 1 deletion ajde/testdata/figures-coverage/.cvsignore

This file was deleted.

8 changes: 0 additions & 8 deletions ajde/testdata/figures-coverage/figures/.cvsignore

This file was deleted.

3 changes: 0 additions & 3 deletions ajde/testdata/figures-coverage/figures/composites/.cvsignore

This file was deleted.

This file was deleted.

This file was deleted.

1 change: 0 additions & 1 deletion ajde/testdata/inheritance/.cvsignore

This file was deleted.

1 change: 0 additions & 1 deletion ajdoc/testdata/bug82340/.cvsignore

This file was deleted.

1 change: 0 additions & 1 deletion ajdoc/testdata/coverage/.cvsignore

This file was deleted.

1 change: 0 additions & 1 deletion ajdoc/testdata/declareForms/.cvsignore

This file was deleted.

1 change: 0 additions & 1 deletion ajdoc/testdata/figures-demo/.cvsignore

This file was deleted.

1 change: 0 additions & 1 deletion ajdoc/testdata/patterns/.cvsignore

This file was deleted.

1 change: 0 additions & 1 deletion ajdoc/testdata/spacewar/.cvsignore

This file was deleted.

1 change: 0 additions & 1 deletion ajdoc/testdata/spacewar/spacewar/.cvsignore

This file was deleted.

2 changes: 0 additions & 2 deletions asm/src/.cvsignore

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -104,8 +104,10 @@ public interface Constants {
short MINOR_19 = 0;
short MAJOR_20 = 64;
short MINOR_20 = 0;
// short MAJOR_21 = 65;
// short MINOR_21 = 0;
short MAJOR_21 = 65;
short MINOR_21 = 0;
// short MAJOR_22 = 66;
// short MINOR_22 = 0;

int PREVIEW_MINOR_VERSION = 65535;

Expand Down
1 change: 0 additions & 1 deletion bridge/src/.cvsignore

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ public class CompilationAndWeavingContext {
public static final int COMPLETING_TYPE_BINDINGS = 6;
public static final int PROCESSING_DECLARE_PARENTS = 7;
public static final int CHECK_AND_SET_IMPORTS = 8;
public static final int CONNECTING_TYPE_HIERARCHY = 9;
public static final int CONNECTING_TYPE_HIERARCHY1 = 9;
public static final int BUILDING_FIELDS_AND_METHODS = 10;
public static final int COLLECTING_ITDS_AND_DECLARES = 11;
public static final int PROCESSING_DECLARE_ANNOTATIONS = 12;
Expand All @@ -54,31 +54,32 @@ public class CompilationAndWeavingContext {
public static final int FIXING_SUPER_CALLS_IN_ITDS = 19;
public static final int FIXING_SUPER_CALLS = 20;
public static final int OPTIMIZING_THIS_JOIN_POINT_CALLS = 21;
public static final int CONNECTING_TYPE_HIERARCHY2 = 22;

// "BACK END"

public static final int WEAVING = 22;
public static final int PROCESSING_REWEAVABLE_STATE = 23;
public static final int PROCESSING_TYPE_MUNGERS = 24;
public static final int WEAVING_ASPECTS = 25;
public static final int WEAVING_CLASSES = 26;
public static final int WEAVING_TYPE = 27;
public static final int MATCHING_SHADOW = 28;
public static final int IMPLEMENTING_ON_SHADOW = 29;
public static final int MATCHING_POINTCUT = 30;
public static final int MUNGING_WITH = 31;
public static final int PROCESSING_ATASPECTJTYPE_MUNGERS_ONLY = 32;
public static final int WEAVING = 23;
public static final int PROCESSING_REWEAVABLE_STATE = 24;
public static final int PROCESSING_TYPE_MUNGERS = 25;
public static final int WEAVING_ASPECTS = 26;
public static final int WEAVING_CLASSES = 27;
public static final int WEAVING_TYPE = 28;
public static final int MATCHING_SHADOW = 29;
public static final int IMPLEMENTING_ON_SHADOW = 30;
public static final int MATCHING_POINTCUT = 31;
public static final int MUNGING_WITH = 32;
public static final int PROCESSING_ATASPECTJTYPE_MUNGERS_ONLY = 33;

// phase names
public static final String[] PHASE_NAMES = new String[] { "batch building", "incrementally building",
"processing compilation unit", "resolving types defined in compilation unit",
"analysing types defined in compilation unit", "generating unwoven code for type defined in compilation unit",
"completing type bindings", "processing declare parents", "checking and setting imports", "connecting type hierarchy",
"completing type bindings", "processing declare parents", "checking and setting imports", "connecting type hierarchy 1",
"building fields and methods", "collecting itds and declares", "processing declare annotations",
"weaving intertype declarations", "resolving pointcut declarations", "adding declare warning and errors",
"validating @AspectJ annotations", "creating accessors for inlining", "adding @AspectJ annotations",
"fixing super calls in ITDs in interface context", "fixing super calls in ITDs",
"optimizing thisJoinPoint calls",
"optimizing thisJoinPoint calls", "connecting type hierarchy 2",

// BACK END

Expand Down
4 changes: 4 additions & 0 deletions docs/developer/RELEASE.md
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,10 @@ mvn nexus-staging:rc-list
# [INFO] ID State Description
# [INFO] orgaspectj-1106 CLOSED org.aspectj:aspectjrt:1.9.8.M2

# Because of problems in Nexus Staging Maven Plugin with more recent JDKs,
# we might need this first
export MAVEN_OPTS="--add-opens=java.base/java.util=ALL-UNNAMED --add-opens=java.base/java.lang.reflect=ALL-UNNAMED --add-opens=java.base/java.text=ALL-UNNAMED --add-opens=java.desktop/java.awt.font=ALL-UNNAMED"

# Use the ID of the corresponding CLOSED staging repository for releasing to
# Maven Central
mvn nexus-staging:rc-release -DstagingRepositoryId=orgaspectj-1106
Expand Down
1 change: 0 additions & 1 deletion docs/sandbox/aopalliance/.cvsignore

This file was deleted.

1 change: 0 additions & 1 deletion docs/teaching/exercises/.cvsignore

This file was deleted.

1 change: 0 additions & 1 deletion org.aspectj.ajdt.core/src/.cvsignore

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -331,7 +331,7 @@ public void postParse(TypeDeclaration typeDec) {
AspectDeclaration aspectDecl = (AspectDeclaration) typeDec;
adviceSequenceNumberInType = aspectDecl.adviceCounter++;

StringBuffer stringifiedPointcut = new StringBuffer(30);
StringBuilder stringifiedPointcut = new StringBuilder(30);
pointcutDesignator.print(0, stringifiedPointcut);
this.selector = NameMangler.adviceName(EclipseFactory.getName(typeDec.binding).replace('.', '_'), kind,
adviceSequenceNumberInType, stringifiedPointcut.toString().hashCode()).toCharArray();
Expand Down Expand Up @@ -459,15 +459,15 @@ private static Argument[] extendArgumentsLength(Argument[] args, int addedArgume
// return s;
// }

public StringBuffer printBody(int indent, StringBuffer output) {
public StringBuilder printBody(int indent, StringBuilder output) {
output.append(": ");
if (pointcutDesignator != null) {
output.append(pointcutDesignator.toString());
}
return super.printBody(indent, output);
}

public StringBuffer printReturnType(int indent, StringBuffer output) {
public StringBuilder printReturnType(int indent, StringBuilder output) {
if (this.kind == AdviceKind.Around) {
return super.printReturnType(indent, output);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1289,7 +1289,7 @@ private IntertypeMemberTypeFinder findOrCreateInterTypeMemberClassFinder(SourceT
return finder;
}

public StringBuffer printHeader(int indent, StringBuffer output) {
public StringBuilder printHeader(int indent, StringBuilder output) {
// since all aspects are made public we want to print the
// modifiers that were supplied in the original source code
printModifiers(this.declaredModifiers, output);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ public Declare build(ClassScope classScope) {
return declareDecl;
}

public StringBuffer print(int tab, StringBuffer output) {
public StringBuilder print(int tab, StringBuilder output) {
printIndent(tab, output);
if (declareDecl == null) {
output.append("<declare>");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -113,9 +113,9 @@ public boolean isError() {
/*
* (non-Javadoc)
*
* @see org.eclipse.jdt.internal.compiler.ast.ASTNode#print(int, java.lang.StringBuffer)
* @see org.eclipse.jdt.internal.compiler.ast.ASTNode#print(int, java.lang.StringBuilder)
*/
public StringBuffer print(int indent, StringBuffer output) {
public StringBuilder print(int indent, StringBuilder output) {
if (pointcut == null)
return output.append("<pcd>");
return output.append(pointcut.toString());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -86,9 +86,9 @@ public int postParse(TypeDeclaration typeDec, MethodDeclaration enclosingDec, in
}

/* (non-Javadoc)
* @see org.eclipse.jdt.internal.compiler.ast.ASTNode#print(int, java.lang.StringBuffer)
* @see org.eclipse.jdt.internal.compiler.ast.ASTNode#print(int, java.lang.StringBuilder)
*/
public StringBuffer print(int indent, StringBuffer output) {
public StringBuilder print(int indent, StringBuilder output) {
output.append("PseudoToken<" + getString() + ">");
return output;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -159,9 +159,9 @@ public void postParse(TypeDeclaration typeDec, MethodDeclaration enclosingDec) {
}

/* (non-Javadoc)
* @see org.eclipse.jdt.internal.compiler.ast.ASTNode#print(int, java.lang.StringBuffer)
* @see org.eclipse.jdt.internal.compiler.ast.ASTNode#print(int, java.lang.StringBuilder)
*/
public StringBuffer print(int indent, StringBuffer output) {
public StringBuilder print(int indent, StringBuilder output) {
output.append(tokenSource.toString());
return output;
}
Expand Down
Loading