question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

It throws a UnsupportedOperationException when there is no default constructor.

See original GitHub issue

I am trying to create an instance of a object that is annotated with @Builder from lombok.Builder It throws an java.lang.UnsupportedOperationException saying that the object has no default constructor.

Is it possible to add a new feature to create the object with All args constructor ?

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:6 (5 by maintainers)

github_iconTop GitHub Comments

2reactions
keepcosmoscommented, Jul 10, 2018

Ooops. sorry @josejuanmontiel I will release as soon as possible

1reaction
keepcosmoscommented, Jul 11, 2018

I just release new version (0.8.0).

@vishwa- Please check few minutes later (because of maven centeral cache)

@josejuanmontiel Thanks and sorry for late 😃

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to create class with no default constructor - Stack Overflow
I just provide the private constructor: public class MyClass { private MyClass() { throw new UnsupportedOperationException(); } }.
Read more >
How to Fix the Unsupported Operation Exception in Java
An UnsupportedOperationException is thrown when a requested operation cannot be performed because it is not supported for that particular class.
Read more >
Jackson Exceptions - Problems and Solutions - Baeldung
This exception is thrown if Jackson can't access the constructor. In the following example, class User doesn't have a default constructor:
Read more >
ReflectionUtil xref - Apache Logging Services - The Apache ...
43 * @throws NullPointerException if {@code member} is {@code null}. ... or there are no default constructors 183 * @throws InternalException wrapper of...
Read more >
Map (Java SE 17 & JDK 17) - Oracle Help Center
Keys and values cannot be added, removed, or updated. Calling any mutator method on the Map will always cause UnsupportedOperationException to be thrown....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found