Skip to content

Commit

Permalink
Support JDK 23 (#1441)
Browse files Browse the repository at this point in the history
As usual, we verify existing tests don't crash on JDK 23 bytecodes, but
we haven't added or tested support for any new features.
  • Loading branch information
msridhar authored Sep 19, 2024
1 parent 033a4c8 commit 81149df
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 11 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/continuous-integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
- os: ubuntu-latest
java: 21
- os: ubuntu-latest
java: 22
java: 23
fail-fast: false
runs-on: ${{ matrix.os }}
steps:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,12 @@
* GetMethodContextSelector} should be placed in be placed in front of {@link
* JavaLangClassContextInterpreter} and {@link JavaLangClassContextSelector} .
*
* <p>TODO Do the same for {@link Class#getField(String)} and {@link
* Class#getDeclaredField(String)}.
*
* @author Michael Heilmann
* @see com.ibm.wala.analysis.reflection.GetMethodContextInterpreter
* @see com.ibm.wala.analysis.reflection.GetMethodContextSelector TODO Do the same for {@link
* Class#getField(String)} and {@link Class#getDeclaredField(String)}.
* @see com.ibm.wala.analysis.reflection.GetMethodContextSelector
*/
public class GetMethodContext implements Context {
/** The type abstraction. */
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,6 @@
* <li>it stores summary edges at each callee instead of at each call site.
* </ul>
*
* <p>
*
* @param <T> type of node in the supergraph
* @param <P> type of a procedure (like a box in an RSM)
* @param <F> type of factoids propagated when solving this problem
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -226,10 +226,6 @@ protected boolean addTarget(int pc, CGNode tNode) {
}
}

/**
* @see
* com.ibm.wala.ipa.callgraph.impl.BasicCallGraph.NodeImpl#removeNodeAndEdges(com.ibm.wala.ipa.callgraph.CGNode)
*/
public void removeTarget(CGNode target) {
allTargets.remove(getCallGraph().getNumber(target));
for (IntIterator it = targets.safeIterateIndices(); it.hasNext(); ) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,8 @@ private void parse() throws InvalidClassFileException {
if (magic != MAGIC) {
throw new InvalidClassFileException(offset, "bad magic number: " + magic);
}
// Support class files up through JDK 22 (version 66)
if (majorVersion < 45 || majorVersion > 66) {
// Support class files up through JDK 23 (version 67)
if (majorVersion < 45 || majorVersion > 67) {
throw new InvalidClassFileException(
offset, "unknown class file version: " + majorVersion + '.' + minorVersion);
}
Expand Down

0 comments on commit 81149df

Please sign in to comment.