SecurityManager has been disabled by default since Java 18, and next LTS version (Java 21) will be released in a few days (19th December). This will deprecate the premise of the kata.
I think this smells like cheating (I mean, look at how much hard work the others had to go through), but you're right - it's Hack-22. All's fair in love and war. ;-)
/workspace/java/src/Bomb.java:3: warning: Reflection is internal proprietary API and may be removed in a future release
import sun.reflect.Reflection;
^
/workspace/java/src/Bomb.java:3: warning: Reflection is internal proprietary API and may be removed in a future release
import sun.reflect.Reflection;
^
/workspace/java/src/Bomb.java:3: warning: Reflection is internal proprietary API and may be removed in a future release
import sun.reflect.Reflection;
^
/workspace/java/src/Bomb.java:3: warning: Reflection is internal proprietary API and may be removed in a future release
import sun.reflect.Reflection;
^
/workspace/java/src/Bomb.java:7: warning: Reflection is internal proprietary API and may be removed in a future release
Reflection.registerMethodsToFilter(Bomb.class, "<init>");
^
Note: /workspace/java/src/Prisoner.java uses unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
5 warnings
Really? This is what you think is enough for us?
It's totally not a FAIR game.
A fair game is, like Hack 22, exposing the exact implementation in the Preload section to the desc
Or how the hell would we know what the heck is PrisonChecker, PrisonGuard and Bomb
SecurityManager
has been disabled by default since Java 18, and next LTS version (Java 21) will be released in a few days (19th December). This will deprecate the premise of the kata.Some cheese solutions that needs to be patched:
you don't need to: that's a plain cheat.
I changed my mind and invalidated this kind of hack. It's too easy, and it isn't specific for this task.
Unpublishing due to many unresolved issues and a close duplicate of https://www.codewars.com/kata/pythagorean-triple
Note: ./src/main/java/ExceptionTester.java uses or overrides a deprecated API. Note: Recompile with -Xlint:deprecation for details.
Please add an aprropiate SuppressWarnings.
Oh, I just saw that you did do a lot of hard work in your other solution. Did you succeed in the end? Most of the code is commented out...
I think this smells like cheating (I mean, look at how much hard work the others had to go through), but you're right - it's Hack-22. All's fair in love and war. ;-)
Duplicate.
The actual/expected values should be compared for approximate equality.
Re-raised as an issue.
Annoying warnings need to be suppressed.
Really? This is what you think is enough for us?
It's totally not a FAIR game.
A fair game is, like Hack 22, exposing the exact implementation in the Preload section to the desc
Or how the hell would we know what the heck is
PrisonChecker
,PrisonGuard
andBomb
Ok. Sorry, I didn't realize it published because it took so long.
Loading more items...