DefaultGeneratorStrategy.generate() has thrown an IllegalArgumentException

java.lang.IllegalArgumentException
Javadoc
Thrown to indicate that a method has been passed an illegal or inappropriate argument. @author unascribed @since JDK1.0
at org.springframework.cglib.proxy.Enhancer.generateClass
at org.springframework.cglib.core.DefaultGeneratorStrategy.generate

Typical Exception Messages

  1. Cannot subclass final class class java.lang.String
  2. Cannot subclass final class int
  3. Cannot subclass final class void
  4. Cannot subclass final class class com.sun.proxy.$Proxy14
  5. Cannot subclass final class java.lang.String

Origin

Enhancer.generateClass() has thrown an IllegalArgumentException

java.lang.IllegalArgumentException
org.springframework.cglib.proxy.Enhancer.generateClass
17Web pages

Similar

Specific cases

External results for this pattern (7)

  1. Kazuki Shimizuvia Spring JIRA3 weeks ago
    Cannot subclass final class class java.lang.String
    Show stack trace
  2. Unknown authorvia stackoverflow.com4 weeks ago
    Cannot subclass final class class com.sun.proxy.$Proxy14
    Show stack trace
  3. chrylisvia GitHub1 year ago
    Cannot subclass final class class java.lang.String
    Show stack trace
  4. Kazuki Shimizuvia Spring JIRA2 years ago
    Cannot subclass final class class java.lang.String
    Show stack trace
  5. chrylisvia GitHub2 years ago
    Cannot subclass final class class java.lang.String
    Show stack trace
  6. node42via Stack Overflow2 years ago
    Cannot subclass final class void
    Show stack trace