I like how @briangoetz.bsky.social uses type nullability markers ? and ! in an unrelated discussion without even explaining them, like if it's already well-known thing that exists in the language for a long time ๐
04.08.2025 20:40 โ ๐ 4 ๐ 0 ๐ฌ 0 ๐ 0
/*
* Package private constructor. Trailing Void argument is there for
* disambiguating it against other (public) constructors.
*/
String(AbstractStringBuilder asb, Void sig)
As named constructors are not possible in #Java, some non-public constructors in OpenJDK contain bogus parameter, just to differentiate them from other constructors.
31.07.2025 11:14 โ ๐ 9 ๐ 3 ๐ฌ 2 ๐ 1
โSudo, Make Me a Sandwich! โ Live Coding With Agentic AI in IntelliJ IDEAโ by @antonarhipov.bsky.social is now live: youtu.be/1cx8vDJYi74
Watch Junie, JetBrainsโ coding agent, in action and see how far AI can go in dev workflows.
#IntelliJIDEAConf
29.07.2025 10:01 โ ๐ 13 ๐ 3 ๐ฌ 0 ๐ 0
I hope you'll enjoy it! Though a professional like you likely knows already more than half of the things I'm writing about :-)
16.07.2025 09:26 โ ๐ 1 ๐ 0 ๐ฌ 0 ๐ 0
I've wanted to buy "100 Java Mistakes..." by @tagir-valeev.bsky.social for a while. Done ๐. Tagir knows so much about Java, and I'm sure I've made many of these mistakes. I'm looking forward to reading this now. ๐
12.07.2025 20:49 โ ๐ 6 ๐ 2 ๐ฌ 2 ๐ 0
Using AI slows down experienced developers?
metr.org/blog/2025-07...
11.07.2025 09:01 โ ๐ 3 ๐ 0 ๐ฌ 0 ๐ 1
The nice thing is that it fixed (and fixed correctly) the real bug in the test, despite I said in the prompt that the test is correct and you need only to write an implementation.
09.07.2025 16:34 โ ๐ 1 ๐ 0 ๐ฌ 0 ๐ 0
Asked JetBrains Junie to implement Stream.takeWhile support in our dataflow analysis. It implemented it, and the tests I wrote beforehand are passed. However, it just reused the Stream.filter implementation. Apparently, I needed better tests. Still, it's a good start, not complete garbage.
09.07.2025 16:33 โ ๐ 1 ๐ 0 ๐ฌ 1 ๐ 0
If you have a CPU-intensive computation which moves/copies data between HashSets a lot, it may make sense to enumerate all your objects (map them to consecutive integers) and move to BitSets instead, mapping back at the end. They are waaaay faster.
04.07.2025 16:47 โ ๐ 4 ๐ 1 ๐ฌ 0 ๐ 0
I'm going to visit JVM LS this year! See ya there!
02.07.2025 10:17 โ ๐ 4 ๐ 1 ๐ฌ 1 ๐ 0
One of my top 3 highlights this year thus far was being invited by the @jetbrains.com @intellijidea.com team to celebrate #30YearsOfJava. The #Java story is rooted in both ongoing technical innovation & community participation.
My thanks to @maritvandijk.bsky.social who made this all possible.
01.07.2025 14:28 โ ๐ 13 ๐ 4 ๐ฌ 1 ๐ 0
IntelliJ IDEA Conf 2025 | June 3-4, 2025
We invite you to join us for IntelliJ IDEA Conf 2025 and gain insights from industry leaders and experts.
#Java peers...the 2025 @intellijidea.com Conference is around the corner (June 3-4)! There's still time to register for this FREE virtual event: jb.gg/c463w8
Hear from host @maritvandijk.bsky.social and me as we kick things off to celebrate 30 YEARS OF JAVA!
29.05.2025 14:52 โ ๐ 30 ๐ 10 ๐ฌ 0 ๐ 0
TIL: In #Java format strings, you can specify indentation to a single percent character.
26.05.2025 09:40 โ ๐ 5 ๐ 2 ๐ฌ 0 ๐ 0
YouTube video by IntelliJ IDEA, a JetBrains IDE
30 Years of Java
Kinda cool #Java30Years #JetBrains www.youtube.com/watch?v=kHyb...
23.05.2025 12:29 โ ๐ 5 ๐ 0 ๐ฌ 0 ๐ 0
Here's how the analytics for a single flaky test looks like inside the IntelliJ project.
22.05.2025 08:54 โ ๐ 3 ๐ 0 ๐ฌ 0 ๐ 0
Schokolade der DB auf dem Buch '100 Java Mistakes and How to Avoid Them' von Tagir Valeev auf dem ICE Tisch.
Manchmal sind es die kleinen Dinge, die einem das Leben versรผรen oder auch 100.
@bahn.de @tagir-valeev.bsky.social
19.05.2025 07:12 โ ๐ 2 ๐ 1 ๐ฌ 1 ๐ 0
๐ค Mellum is now open source on @hf.co!
Itโs a focal model that is small, efficient, and made for one thing: code completion.
โ๏ธ Trained from scratch by JetBrains.
๐ฑ First in a growing family of dev-focused LLMs.
๐ jb.gg/hi_mellum
30.04.2025 12:43 โ ๐ 63 ๐ 17 ๐ฌ 0 ๐ 3
And it prints 'From var'. However, you can remove the variable declaration, and it will resolve to a class and print 'From class'. There's no ambiguity, as an instance-bound method reference has a priority over a statically bound one.
15.04.2025 09:48 โ ๐ 0 ๐ 0 ๐ฌ 0 ๐ 0
You can try something simpler, e.g.
void main() {
class C {
static void run() {
System.out.println("From class");
}
}
Runnable C = () -> System.out.println("From var");
Runnable r = C::run;
rโ.run();
}
IDE resolves C properly to a variable.
15.04.2025 09:48 โ ๐ 1 ๐ 0 ๐ฌ 1 ๐ 0
One of the few places where both class name and variable name can appear is the method reference qualifier. In this case, first it's assumed to be an expression (variable reference), and if it doesn't work, then there's an attempt to resolve a class. If the variable works, we don't try a class.
15.04.2025 09:48 โ ๐ 0 ๐ 0 ๐ฌ 1 ๐ 0
The correct answer is counter-intuitively, Outer2โ.foo. Normally, classes and variables have separate namespaces in Java, so importing class and importing variable (static field) with the same name does not produce an ambiguous import.
15.04.2025 09:48 โ ๐ 3 ๐ 1 ๐ฌ 1 ๐ 0
Crowdsourcing compiler fuzzy-testing.
15.04.2025 09:35 โ ๐ 0 ๐ 0 ๐ฌ 0 ๐ 0
Ok, here's my solution. Full of warnings, of course, but who cares about warnings?
void main() {
O<O<O>> O = O<O>::<O>O;
}
interface O<T> {
void use(O c);
default <C> void O() {
}
}
15.04.2025 09:35 โ ๐ 1 ๐ 0 ๐ฌ 0 ๐ 0
Not sure. You'll get extra points for such a solution :-D
14.04.2025 07:40 โ ๐ 2 ๐ 0 ๐ฌ 0 ๐ 0
Not necessarily. It works either way.
14.04.2025 07:25 โ ๐ 2 ๐ 0 ๐ฌ 0 ๐ 0
Btw ChatGPT 4o cannot solve it for me (using the post above as the prompt). You have a chance to be smarter than AI :-)
14.04.2025 07:24 โ ๐ 2 ๐ 0 ๐ฌ 0 ๐ 0
Provide the declaration of the O type, so this statement could be a valid #Java statement:
O<O<O>> O = O<O>::<O>O;
14.04.2025 07:22 โ ๐ 5 ๐ 1 ๐ฌ 4 ๐ 1
Well, I didn't fall for Mistake #11 from @tagir-valeev.bsky.social's book, but quite something similar:
Jackson Objects are both mutable AND return the updated self. I took it for being a copy-then-modify-Operation and used the original value elsewhere - which was modified, too. ๐ฌ
#java #mistakes
12.04.2025 12:48 โ ๐ 13 ๐ 2 ๐ฌ 3 ๐ 0
What is the output of the following Java code?
A: Outer.Innerโ.foo
B: Outer2โ.foo
C: Compilation error
D: Runtime exception
(No idea if it's possible to post a poll here)
11.04.2025 14:45 โ ๐ 3 ๐ 0 ๐ฌ 1 ๐ 1
Two lines of code eat too much of time in a user-supplied CPU profile. These lines exist for ages. It's not so clear why they were added. Let's just remove them๐ค
09.04.2025 16:39 โ ๐ 5 ๐ 0 ๐ฌ 0 ๐ 0
Java Champion. Joda-Time. Joda-Beans. Joda-Money. JSR-310. ThreeTen-Extra. Blogger. Conference speaker. https://blog.joda.org I do not represent my employer.
OpenJDK developer at Oracle, floating-point fancier, marathoner, record-setting fast walker, episodic photographer. Views expressed may or may not be held by any person or org.
Developer advocate for @BellSoft
Love people, both listen and talk to
https://asm0dey.site/
Developer Advocate @ JetBrains
YouTube.com/@AntonArhipov
#java #kotlin #programming
๐ณ๏ธโ๐๐บ๐ธ๐จ๐ฆ๐ฒ๐ฝ๐ฎ๐ณ๐บ๐ฆ๐ฎ๐ฑ๐ต๐ธ | FIGHT FOR DEMOCRACY | #Java #DevRel at Oracle | Past careers as a bartender, and in tech at SunMicrosystems, Verizon, & Bell Atlantic | University of Maryland (Undergrad) and Loyola University, Baltimore (MBA) | Views mine
VP of Program Management @ JetBrains.
Developer Advocate at JetBrains (RustRover, Fleet)
Pre-master student of linguistics at Leiden University, ex-JetBrains. https://yole.page
JavaChampion. Speaker. Books: http://goo.gl/QD6eeh. Co-lead
Delhi JUG, Developer Advocate @JetBrains. DevNexus Rockstar!
Technical Support @ JetBrains
The World's Leading Provider of Professional Development Tools. Makers of IntelliJ IDEA, ReSharper, PyCharm, TeamCity, Kotlin, and more.
IntelliJ IDEA โ the IDE for Professional Development in Java and Kotlin, by @jetbrains.com
Tips: #IntelliJIDEATips
New Features: #NewInIntelliJIDEA
Our YouTube channel: http://jb.gg/video
In love-hate relationship with machines. Currently: OpenJDK, AWS. "Trust me, it's really me" backlink: https://shipilev.net/#social
Writing The Pragmatic Engineer (@pragmaticengineer.com), the #1 technology newsletter on Substack. Author of The Software Engineer's Guidebook (engguidebook.com). Formerly at Uber, Skype, Skyscanner. More at pragmaticengineer.com
Programmer, author, speaker, founder Agile Developer, Inc., co-founder of @dev2next Conference, professor @CSatUH
Java Champion, Developer Productivity Advocate, Author
https://trishagee.com
https://linktr.ee/trisha_gee
๐ช๐ธ๐ฌ๐ง๐ช๐บ
Java/JDK/OpenJDK developer, Oracle Corporation. The views expressed here are my own and do not necessarily reflect the views of Oracle. Mostly on @stuartmarks@mastodon.social ; formerly @stuartmarks on Twitter.
Java Champion. Writer of blogs. Creator of the OSS Java library Eclipse Collections. Author of Eclipse Collections Categorically (https://a.co/d/6KmhrNK) . Opinions are my own.
Blog: https://donraab.medium.com/
Java Platform Group @Oracle (all opinions are my own alone).
See random stuff about me at http://kevinb9n.github.io