realm-java icon indicating copy to clipboard operation
realm-java copied to clipboard

Version warning from annotation processor

Open kspangsege opened this issue 14 years ago • 2 comments

I get a warning when the annotation processor runs because it declares that it does not understand Java source format beyond version 6.

In com/tightdb/generator/CodeGenProcessor.java:

@SupportedSourceVersion(SourceVersion.RELEASE_6)

should probably be changed to

@SupportedSourceVersion(SourceVersion.RELEASE_7)

Of course, we can only make this change if our processor actually understands version 7 syntax properly. If not, we must update the processor.

kspangsege avatar Aug 18 '12 22:08 kspangsege

7 is also supported, so Niko please update.

bmunkholm avatar Aug 27 '12 12:08 bmunkholm

Simply changing it to SourceVersion.RELEASE_7 would make it incompatible with Java 6, but I solved the problem by adding a method that returns the latest Java version.

nmihajlovski avatar Aug 27 '12 16:08 nmihajlovski