[Solved]Revision 7891 (Prevented Shader Leaks) causes build error

Log:

jme3srccorecomjme3shaderShader.java:221: non-static variable this cannot be referenced from a static context

return new ShaderSource(this);

I got that error too.



Open the file, add a space, delete the space. Save. The error should go away. Then, Revert local changes. The error should still be gone after that.

I guess it was simply a matter of cleaning/rebuilding.

Thanks

I tried Clean & Build but the build would error out at the same place even though the IDE doesn’t show an error. The above was the only way I could have it work. :confused:



Actually, that’s not true. The IDE does show the error. I thought simply try force a Clean & Build would still work, but it didn’t.