-
Apr 3rd, 2010, 07:36 PM
#1
Spring 3.0 and Spring JavaConfig compatability
Hi
I am really unsure on the compatability status here?
From simply downloading the 1.0.0M4 JavaConfig release and Spring 3.0.1 release I have encountered numerous errors. Current one is below.
Given these problems and simple things like the 1.0.0M5 link goes to a blank page I am not really happy to proceed with adoption now of JavaConfig and will stick with xml based which is a shame.
Can you let me know when there is likely to be a final release of Spring JavaConfig which works out of the box with Spring 3.0.x releases, without ambiguity to where annotations live and without problems in getting the very simplest of examples working?
Thanks
Liam
Exception in thread "main" java.lang.annotation.AnnotationFormatError: Invalid default: public abstract org.springframework.beans.factory.annotation.Autow ire org.springframework.config.java.annotation.Configu ration.defaultAutowire()
at java.lang.reflect.Method.getDefaultValue(Method.ja va:726)
at sun.reflect.annotation.AnnotationType.<init>(Annot ationType.java:99)
at sun.reflect.annotation.AnnotationType.getInstance( AnnotationType.java:66)
at sun.reflect.annotation.AnnotationParser.parseAnnot ation(AnnotationParser.java:202)
at sun.reflect.annotation.AnnotationParser.parseAnnot ations2(AnnotationParser.java:69)
at sun.reflect.annotation.AnnotationParser.parseAnnot ations(AnnotationParser.java:52)
at java.lang.Class.initAnnotationsIfNecessary(Class.j ava:3070)
at java.lang.Class.getAnnotation(Class.java:3029)
at org.springframework.config.java.internal.util.Anno tationExtractionUtils.extractClassAnnotation(Annot ationExtractionUtils.java:41)
at org.springframework.config.java.internal.model.Con figurationClass.<clinit>(ConfigurationClass.java:6 5)
at org.springframework.config.java.internal.parsing.a sm.AsmConfigurationParser.parse(AsmConfigurationPa rser.java:72)
at org.springframework.config.java.internal.factory.s upport.AsmJavaConfigBeanDefinitionReader.loadBeanD efinitions(AsmJavaConfigBeanDefinitionReader.java: 70)
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules