Google Extensions Could Aid Java Security

Google Extensions Could Aid Java Security

Google has open sourced a project called “Contracts for Java” or “Cofoja” that is dedicated to building a new set of extensions for Java. The features would serve dual purposes of making programming easier and protecting against buffer overflow attacks. The technique is borrowed from the Eiffel language, where it is known as “DBC (Design-By-Contract).”

“By annotating your code with contracts you are much more likely to reveal bugs in earlier phases of development,” said Google’s Andreas Leitner. Some of those bugs could “be exploited by attackers to gain ownership of data or machines.”

View article


About Our Editorial Process

At DevX, we’re dedicated to tech entrepreneurship. Our team closely follows industry shifts, new products, AI breakthroughs, technology trends, and funding announcements. Articles undergo thorough editing to ensure accuracy and clarity, reflecting DevX’s style and supporting entrepreneurs in the tech sphere.

See our full editorial policy.

About Our Journalist