enums, prev version compiled in JDK 1.6 with source 1.5
Status: Alpha
Brought to you by:
lkuehne
If you have an enum in your jar...
And the previous build was using JDK 1.6 with source 1.5
And the current build is using JDK 1.5
You get the following error message:
[ERROR] my.enum.package.MyEnum: Method 'public my.enum.package.MyEnum[] values()' is now final
Given that the enum is generated by the JDK, this should be filtered out?
Logged In: YES
user_id=401384
Originator: NO
First of all, let me state that clirr currently only really supports Java 1.4.
Java 5 language features such as Enums, Varargs, generics are currently not treated properly by clirr or at least they are untested - see the feature request tracker. Oh, and in the age of @DoThisHere annotations, clirr might need to check annotations as well.
Yeah, I know, Java 5 has been out for quite some time now. kids.
Re this particular issue: It might be a more generic problem, unrelated to enums.
As far as I know, enum classes are always final. If you change the final flag of a method in a class that is final in both the old and the new versions, this shouldn't be an error as this change cannot break existing client code.