Skip to content

Conversation

@labkey-jeckels
Copy link
Contributor

Rationale

We're upgrading to require Java 25.

Changes

  • Expect Java 25. Stop bothering to recognize Java 17.

Tasks 📍

  • Manual Testing
  • Needs Automation
  • Verify Fix

@labkey-adam
Copy link
Contributor

@labkey-jeckels there are a couple other places that should be updated (RecompilingJspClassLoader, FileSystemWatcherImpl.TestCase). Find In Files @JavaRuntimeVersion to navigate to them.

@labkey-jeckels
Copy link
Contributor Author

@labkey-jeckels there are a couple other places that should be updated (RecompilingJspClassLoader, FileSystemWatcherImpl.TestCase). Find In Files @JavaRuntimeVersion to navigate to them.

Updated. I also eliminated finalize() methods.

Copy link
Contributor

@labkey-susanh labkey-susanh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think I'm not fully understanding how the ConnectionState and Cleaner work since JavaDocs say the state should have no reference to the object being cleaned, but then I'm not sure how it can be used to clean anything.

In any case, I think the || true hacks want removing.

if (MiniProfiler.isCollectTroubleshootingStackTraces())
String url = null;
String threadName = null;
if (MiniProfiler.isCollectTroubleshootingStackTraces() || true) // TODO - remove hack!
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Still TODO?

private final StackTraceElement[] _debugCreated;
private final @Nullable DbScope _scope;
private final @Nullable Connection _connection;
private final ResultSet _rs; // This is the underlying result set
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this OK? I thought the state was not supposed to have a reference to the object being cleaned?

public static StackTraceElement[] getTroubleshootingStackTrace()
{
if (isCollectTroubleshootingStackTraces())
if (isCollectTroubleshootingStackTraces() || true) // TODO - remove hack
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Still TODO

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants