Jorge Cespedes
Jorge Cespedes

Reputation: 597

Creating enum with javassist

I'm using javassist to create a class at runtime, based on a class schema (probably json). Some attributes of this class may be Enums, and I would like to know how to create a Enum field because CtClass doesn't seem appropriate to create it. Thanks in advance.

Upvotes: 2

Views: 447

Answers (1)

guai
guai

Reputation: 805

Its said that

The new syntax introduced by J2SE 5.0 (including enums and generics) has not been supported.

in the tutorial

Upvotes: 1

Related Questions