XMLencoding enums in Java 1.5

S

Steven Davies

Hi,

In my Java project I have a few enum types defined, and classes/objects
that use those enums as attributes.

So I have, for example:

enum Test1 {
ONE,
TWO,
THREE;
}

class testClass {
private Test1 testEnum = THREE;
}

When trying to XMLencode the above code (or something very similar), the
JRE throws exceptions as below:

java.lang.RuntimeException: failed to evaluate: <unbound>=Class.new();
Continuing ...

Does anyone know any way to solve this, or any workarounds for it?

Thanks,
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,780
Messages
2,569,610
Members
45,254
Latest member
Top Crypto TwitterChannel

Latest Threads

Top