aboutsummaryrefslogtreecommitdiffstats
path: root/docs/adk15ProgGuideDB
diff options
context:
space:
mode:
authorAndrew Clement <aclement@vmware.com>2025-03-07 10:43:16 -0800
committerAndrew Clement <aclement@vmware.com>2025-03-07 10:43:16 -0800
commiteb56b6e84e24e58f318fb92479f9d9e6fa4c866f (patch)
treefb1958413e34ed551c7b93e5281aa9ca1fe787de /docs/adk15ProgGuideDB
parent8044fa120adc1f7370b09c1dbf906eff62e1da62 (diff)
downloadaspectj-eb56b6e84e24e58f318fb92479f9d9e6fa4c866f.tar.gz
aspectj-eb56b6e84e24e58f318fb92479f9d9e6fa4c866f.zip
Add Java23 supportHEADmaster
The huge change with adopting Java23 is that 1.1 > 1.7 Java are now considered unsupported by Eclipse JDT, so the many thousands of tests we have that were specifying java versions lower than 1.8 were all failing with an unsupported version error. All those tests have had their versions bumped to 1.8.

That is why this commit includes so many changes. For example where we were specifying 1.5 - which was the case for many many generics/annotations tests, that is now 1.8. Also, some tests have been deleted because they make no sense now (verifying expected errors on Java 1.4 for example, errors that just can’t happen with minimum Java level 1.8). The biggest impact to tests was when bumping above 1.4 compliance suddenly there were 100s of adviceDidNotMatch messages. Some of these messages were actual indications of bad expectations in the test but many of them were just to-be-expected and were fixed either via an -Xlint:ignore option in the test spec or a SuppressAjWarnings in the test source.

One or two tests actually revealed real bugs that just didn’t surface with lower level java versions specified. A bare minimum of real Java 23 tests have been added just to get this sanity tested and committed. More would ideally be added. Other notable changes due to Eclipse JDT changes: org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/compiler/ast/*.java Changes in here because there are now more validations on the code generator methods we were calling. Now you can’t start manipulating variables without having declared them as proper local variables, so those extra calls to define them have been added.
 org.aspectj.ajdt.core/src/org/aspectj/org/eclipse/jdt/core/dom With needing to bump up the java versions, these classes had to be brought up to date with AST.JLS20 rather than only supporting versions 2/3. This was mostly copying patterns for the Eclipse classes.


Diffstat (limited to 'docs/adk15ProgGuideDB')
0 files changed, 0 insertions, 0 deletions