Skip to content

Commit 5acbb7a

Browse files
Bug-372: Cannot load battle file when -DNOSECURITY=true is enabled - java.lang.IllegalAccessError
1 parent e40e47f commit 5acbb7a

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

robocode.core/src/main/java/net/sf/robocode/battle/BattleProperties.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -314,11 +314,11 @@ public void setSentryBorderSize(int borderSize) {
314314
props.setProperty(BATTLE_SENTRY_BORDER_SIZE, "" + sentryBorderSize);
315315
}
316316

317-
void store(FileOutputStream out, String desc) throws IOException {
317+
public void store(FileOutputStream out, String desc) throws IOException {
318318
props.store(out, desc);
319319
}
320320

321-
void load(FileInputStream in) throws IOException {
321+
public void load(FileInputStream in) throws IOException {
322322
props.load(in);
323323
battlefieldWidth = Integer.parseInt(props.getProperty(BATTLEFIELD_WIDTH, "800"));
324324
battlefieldHeight = Integer.parseInt(props.getProperty(BATTLEFIELD_HEIGHT, "600"));

versions.md

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
1-
## Version 1.9.2.1 Alpha 1 (07-May-2014)
1+
## Version 1.9.2.1 Alpha 1 (13-May-2014)
22

33
### Bug fixes
44
* [Bug-371][]: High cpu usage on editor.
5+
* [Bug-372][]: Cannot load battle file when ``-DNOSECURITY=true`` is enabled - ``java.lang.IllegalAccessError``.
56

67
## Version 1.9.2.0 (23-Apr-2014)
78

@@ -2959,6 +2960,7 @@ Currently, there is one known issue, which will be fixed with the next Beta or i
29592960
[Bug-369]: http://sourceforge.net/p/robocode/bugs/369/ (RoboRumble: NoClassDefFoundError for CodeSizeCalculator)
29602961
[Bug-370]: http://sourceforge.net/p/robocode/bugs/370/ (Robot Packager cannot find robot .properties file in development path)
29612962
[Bug-371]: http://sourceforge.net/p/robocode/bugs/371/ (High cpu usage on editor)
2963+
[Bug-372]: http://sourceforge.net/p/robocode/bugs/372/ (Cannot load battle file when -DNOSECURITY=true is enabled - java.lang.IllegalAccessError)
29622964

29632965

29642966
[Req-1]: http://sourceforge.net/p/robocode/feature-requests/1/ (Multiple or hyperthreading CPUs (most P4s) hangs Robocode)

0 commit comments

Comments
 (0)