Java
!java
#
Is there a way to search for which Java/JVM package contains a specific class?

Say I want a class called “com.mysql.cj.jdbc.Driver” but I don’t know what Gradle or Maven dependency contains it. Is there a place I can just type in the full class name and get results on what publicly available JVM packages contain it? Googling a lot these class names don’t return much useful inf…



WildFly (formerly known as JBoss Application Server) is an open-source JavaEE application server developed and first released by JBoss in February, 2008. The primary goal of the project is to provide a set of tools usually required for enterprise Java applications. And since the server is used for d…


Checking the Code of XMage, and Why You Won't Be Able to Get the Special Rare Cards of the Dragon's Maze Collection

XMage is a client-server application for playing Magic: The Gathering (MTG). XMage’s development was started in early 2010. Since then, it has seen 182 releases, attracted an army of contributors, and it’s still being actively developed even now. All that makes it a good reason for us to contribute …


To keep it interesting, this time I’d like to tell about our approach to developing and polishing diagnostic rules for PVS-Studio Java. You will learn how we keep existing warnings consistent across releases and why the new ones aren’t too weird. I’ll also share a bit of inside information on what p…



2019 was a very busy year in terms of conferences. Our team could leave for whole weeks on business trips. As you know, the conference is perfect time to share knowledge. In addition to giving talks and telling many interesting things at our booth, we also learned a lot from communicating with confe…


Swing separable model question

Since swing doesn’t use traditional mvc where would you put the database interaction code?..




This time, the PVS-Studio team’s attention was attracted by Ghidra, a big bad reverse-engineering framework allowing developers to analyze binary files and do horrible things to them. The most remarkable fact about it is not even that it’s free and easily extensible with plugins but that it was deve…


Java Thread Dump Analyzer

fastThread is a tool that will parse and analyze thread dumps written in any language that runs on the JVM: https://fastthread.io/




Using table-valued parameters with SQL Server JDBC

Today I learned how to pass a table of parameters into a stored procedure in MS SQL Server, using Java / JDBC…



Java development in emacs

Been experimenting with lsp-java in emacs to develop. So many improvements in the last year that it may eventually replace my Intellij setup…


Top 10 Bugs Found in Java Projects in 2019

2019 is drawing to an end, and the PVS-Studio team is looking back at the accomplishments of this year. In the beginning of 2019, we enhanced our analyzer’s diagnostic capabilities by adding Java support, which enabled us to check and review Java projects as well. We have found lots of bugs over thi…


Programmer's Guide To Text Blocks

JEP 355 introduces text blocks into Java SE 13 as a Preview feature. While the JEP explains the feature in great detail, it’s not always apparent how the feature can and should be used. This guide assembles practical usage advice for text blocks, along with some style guidelines…


Java is on the top in "7 most in-demand programming languages of 2019"

Programmers who aspire to achieve greatness need to know what languages to learn. And the best way to do so is to know the 7 most in-demand programming languages of 2019. …