44 points · by javafactory · 1y ago · 27 comments
I built a code generator plugin for IntelliJ that uses LLMs to create repetitive Java code like implementations, tests, and fixtures — based on custom natural-language patterns and annotation-based references.
Most tools like Copilot or Cursor aim to be general, but fail to produce code that actually fits a project structure or passes tests.
So I made something more explicit: define patterns + reference scope, and generate code consistently.
In this demo, 400 lines of Java were generated in 20 seconds — and all tests passed: https://www.youtube.com/watch?v=ReBCXKOpW3M
GitHub: https://github.com/JavaFactoryPluginDev/javafactory-plugin
Structural refactoring is another amazing feature that is worth knowing.
I can’t help but wonder if the folks at JetBrains are starting to feel a bit of pressure from tools like Cursor or Windsurf
"404 - page not found The
master branch of
javafactory-plugin does not contain the path
docs/how-to-use.md."
How do I hook it into local models? Does it support Ollama, Continue, that kind of thing? Do you collect telemetry?
2. from now, i only allow to use gpt-4o, because the requests involve relatively long context windows, which require high-quality reasoning. Only recent high-performance models like GPT-4o or Claude Sonnet are capable of reducing the manual workload for this kind of task.
___
but still, if user want to use other models , i can make adapter features for various models
Right, so it can't be used on proprietary code or in settings where personal data might occur.
To be honest, I didn’t realize that model selection would be such an important point for users. I believed that choosing a high-quality model with strong reasoning capabilities was part of the service’s value proposition.
But lately, more users — including yourself — have been asking for support for other models like Claude Sonnet or LLaMA.
I’m now seriously considering adding an adapter feature. Thank you for your feedback — I really appreciate it.
Actually, I'm currently thinking about creating a small community for sharing pattern definitions.
But the project looks interesting, I have been looking for something similar.
The requests involve relatively long context windows, which require high-quality reasoning. Only recent high-performance models like GPT-4o or Claude Sonnet are capable of reducing the manual workload for this kind of task.
That said, what I wanted to highlight in the example was a contrast — tools like Cursor and other general-purpose models often fail to even generate simple tests correctly, or can't produce tests that pass. So the goal was to show the difference in reliability.