EmbeddedJavalin does not reject all enableStaticFiles overloads
See original GitHub issueActual behavior (the bug)
Calling .enableStaticFiles("/foo", Location.CLASSPATH)
on an EmbeddedJavalin
instance does not yield an exception as a call to .enableStaticFiles("/foo")
would, but the registration is silently ignored.
Expected behavior An exception indicating that the call is unsupported in embedded mode.
To Reproduce Steps to reproduce the behavior
Additional context
Looks like we need an additional override on EmbeddedJavalin
of the form:
override fun enableStaticFiles(classpathPath: String, loc: Location) = notAvailable("enableStaticFiles()")
Issue Analytics
- State:
- Created 5 years ago
- Comments:9 (8 by maintainers)
Top Results From Across the Web
EmbeddedJavalin does not reject all enableStaticFiles overloads ...
Actual behavior (the bug) Calling .enableStaticFiles("/foo", Location.CLASSPATH) on an EmbeddedJavalin instance does not yield an exception as a call to .
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Please go ahead 😃
Sure; won’t be until this evening though unfortunately!