This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
I am trying to compile code that was previously compiled but isn't working for me for some reason.
Can anyone tell me if there's another way to do the following? I don't understand because this was previouly compiled - all I did was decompile and try to recompile after changing a completely separate method. I haven't touched this code.
is not a valid statement and I don't know why it's being declared here but when I remove it, I get an error that it hasn't been initialized and is then the other statement is unreachable.
static Class _mthclass$(String x0)
The decompiler has produced completely invalid code; they do that sometimes if they can't quite figure out what the code is supposed to do -- or if they're decompiling bytecodes that weren't compiled from Java source in the first place, which may be the case here. Maybe it's just supposed to be something like