-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Inject strictfp into player code #302
Comments
Possibly a dumb thought, but since server the class running robotplayer is strictfp, shouldn't all functions (including player code) within it be run with strictfp restrictions as well? |
Server isn't really 'running' RobotPlayer, as the JVM understands it. Server is a loaded class, and RobotPlayer is also a loaded class. (RobotPlayer is loaded by a custom classloader, but that doesn't tell it anything about Server.) |
Not exactly a fix (at all), but I just made examplefuncsplayer strictfp because I know a lot of teams use that file as a template. |
Is it possible to use gradle to literally just iterate through all classes in a folder and insert |
I believe it would be better to accomplish this with the instrumenter somehow. |
I can look into this now |
I found a way to force strictfp by setting Opcodes.ACC_STRICT in MethodVisitor. This has an interesting consequence of making |
This is sort of a shot in the dark, but what if you set According to JLS §15.4:
That would mean that all methods and lambdas which are really inner classes should also be evaluated with fpstrict rules. |
Not sure how to do this
The text was updated successfully, but these errors were encountered: