|

Gradle build: bootstrap class path not set in conjunction with -source 1.7

Building of a Gradle project yields the following warning: :compileJavawarning: [options] bootstrap class path not set in conjunction with -source 1.7 1 warning That happens whenever the project is compiled to be compatible with an older Java version compared to the installed JDK (Java 8 in my case). build.gradle apply plugin: ‘java’ sourceCompatibility = 1.7 … The warning…

|

Bytecode Manipulation via Reflection API and Javassist

I’ve recently come across an interesting puzzle, it went like “Guess the next value of Math.random()”. How could you possibly do it? Well, since the output is unpredictable by definition, the only option left for many of us is cheating. Once I successfully “solved” the puzzle by crippling the poor Math class to a worrying…

| |

Google Cloud Endpoints – Design Considerations

While designing of the Endpoints API is fairly straightforward, there are gotchas one might stumble upon. Especially when task at hand is slightly more involved than the proverbial “hello world” example. It took several iterations in my tiny little project to adjust the API according to my needs. Don’t get me wrong. I enjoy working…

| |

Google Cloud Endpoints – Overloaded Methods not Supported

The title says it all, one cannot make use of method overloading when working with Endpoints. Not a big deal one might think. Well, as usual, it depends. To me, method overloading is a feature I appreciate, since it allows for a great naming consistency and promotes polymorphism, one of the major deals with OOP….