Solved Really weird error

Discussion in 'Plugin Development' started by Side8StarLite, Dec 22, 2017.

Thread Status:
Not open for further replies.
  1. Offline

    Side8StarLite

    Hello
    I'm getting the weirdest error here, anyone know why?
    weird-error.jpg
    It's not allowing me to set a boolean value for the config. I know a workaround is to wrap 'permanent' in "new Boolean()", but I don't recall having to do this in previous versions of Bukkit. Is this feature new? Or am I doing something stupidly wrong?
     
  2. Offline

    Zombie_Striker

    @Side8StarLite
    This looks like an IDE problem, not a problem with bukkit itself. Try closing out of eclipse and reopening it.
     
    Side8StarLite likes this.
  3. @Side8StarLite @Zombie_Striker
    If restarting the IDE doesn't work, my usual trick with eclipse is to cast to (Boolean) (the object) to make it really understand what I want.
     
    Side8StarLite likes this.
  4. Offline

    Side8StarLite

    @Zombie_Striker @AlvinB Thank you for the advice, but I found the error - turns out I was compiling with Java 1.4 and it needed to be at least 1.5 for it to cast the boolean to Objects (StackOverflow calls it autoboxing :p). Again, thank you for your replies that led me in the direction I needed!
     
  5. Offline

    timtower Administrator Administrator Moderator

Thread Status:
Not open for further replies.

Share This Page