Skip to content

Commit

Permalink
Fix minor issues discovered in native-image (#12379)
Browse files Browse the repository at this point in the history
* Fix minor issues discovered in native-image

Bugs have been reported by first users of NI.

* nit
  • Loading branch information
hubertp authored Feb 28, 2025
1 parent 1574089 commit bb51294
Show file tree
Hide file tree
Showing 3 changed files with 50 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import org.enso.text.Sha3_224VersionCalculator
import java.util
import java.util.{Collections, UUID}
import java.util.concurrent.atomic.AtomicReference
import java.util.concurrent.{ExecutorService, TimeUnit}
import java.util.concurrent.{CancellationException, ExecutorService, TimeUnit}
import java.util.logging.Level
import scala.concurrent.{Future, Promise, TimeoutException}
import scala.util.control.NonFatal
Expand Down Expand Up @@ -131,6 +131,12 @@ final class JobExecutionEngine(
}
logger.log(Level.WARNING, sb.toString())
runningJob.future.cancel(runningJob.job.mayInterruptIfRunning)
case _: CancellationException =>
logger.log(
Level.FINE,
"Job `{}` was cancelled by an external task",
runningJob.id
)
case e: Throwable =>
logger.log(
Level.WARNING,
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
[
{
"interfaces": [
"org.enso.base.enso_cloud.AuthenticationProvider$AuthenticationService"
]
}
]
Original file line number Diff line number Diff line change
Expand Up @@ -321,5 +321,41 @@
]
}
]
},
{
"name": "org.slf4j.Logger",
"methods": [
{
"name": "info",
"parameterTypes": [
"java.lang.String"
]
},
{
"name": "debug",
"parameterTypes": [
"java.lang.String"
]
},
{
"name": "error",
"parameterTypes": [
"java.lang.String"
]
},
{
"name": "warn",
"parameterTypes": [
"java.lang.String"
]
},
{
"name": "trace",
"parameterTypes": [
"java.lang.String"
]
}

]
}
]

0 comments on commit bb51294

Please sign in to comment.