Hi all,
Just for the record. I got these exceptions while compiling on Sun JDK
1.5.0_19, which did not appear on Sun JDK 1.6.0_16.
[INFO]
------------------------------------------------------------------------
[INFO] Building Apache Bean Validation :: bval-jsr303
[INFO] task-segment: [clean, install]
[INFO]
------------------------------------------------------------------------
[INFO] [clean:clean]
[INFO] Deleting file set: /home/senaka/bval/bval-jsr303/target (included:
[**], excluded: [])
[INFO] [enforcer:enforce {execution: default}]
[INFO] [buildnumber:create {execution: default}]
[INFO] [jaxb2:xjc {execution: default}]
[INFO] Generating source...
[INFO] parsing a schema...
[INFO] compiling a schema...
[INFO] org/apache/bval/jsr303/xml/AnnotationType.java
[INFO] org/apache/bval/jsr303/xml/BeanType.java
[INFO] org/apache/bval/jsr303/xml/ClassType.java
[INFO] org/apache/bval/jsr303/xml/ConstraintDefinitionType.java
[INFO] org/apache/bval/jsr303/xml/ConstraintMappingsType.java
[INFO] org/apache/bval/jsr303/xml/ConstraintType.java
[INFO] org/apache/bval/jsr303/xml/ElementType.java
[INFO] org/apache/bval/jsr303/xml/FieldType.java
[INFO] org/apache/bval/jsr303/xml/GetterType.java
[INFO] org/apache/bval/jsr303/xml/GroupSequenceType.java
[INFO] org/apache/bval/jsr303/xml/GroupsType.java
[INFO] org/apache/bval/jsr303/xml/ObjectFactory.java
[INFO] org/apache/bval/jsr303/xml/PayloadType.java
[INFO] org/apache/bval/jsr303/xml/PropertyType.java
[INFO] org/apache/bval/jsr303/xml/ValidatedByType.java
[INFO] org/apache/bval/jsr303/xml/ValidationConfigType.java
[INFO] org/apache/bval/jsr303/xml/package-info.java
[INFO] [remote-resources:process {execution: process-remote-resources}]
[INFO] [remote-resources:process {execution: default}]
[INFO] [resources:resources]
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 7 resources
[INFO] Copying 2 resources to META-INF
[INFO] Copying 4 resources
[INFO] Copying 4 resources
[INFO] [compiler:compile]
[INFO] Compiling 129 source files to
/home/senaka/bval/bval-jsr303/target/classes
[INFO]
------------------------------------------------------------------------
[ERROR] BUILD FAILURE
[INFO]
------------------------------------------------------------------------
[INFO] Compilation failure
/home/senaka/bval/bval-jsr303/src/main/java/org/apache/bval/jsr303/BeanDescriptorImpl.java:[79,48]
cannot find symbol
symbol : method isEmpty()
location: class java.lang.String
/home/senaka/bval/bval-jsr303/src/main/java/org/apache/bval/jsr303/util/ClassHelper.java:[54,36]
cannot find symbol
symbol : constructor ArrayList(java.util.List<java.lang.Class>)
location: class java.util.ArrayList<java.lang.Class<?>>
/home/senaka/bval/bval-jsr303/src/main/java/org/apache/bval/jsr303/ClassValidator.java:[104,3]
method does not override a method from its superclass
/home/senaka/bval/bval-jsr303/src/main/java/org/apache/bval/jsr303/ClassValidator.java:[166,3]
method does not override a method from its superclass
/home/senaka/bval/bval-jsr303/src/main/java/org/apache/bval/jsr303/ClassValidator.java:[248,3]
method does not override a method from its superclass
/home/senaka/bval/bval-jsr303/src/main/java/org/apache/bval/jsr303/ClassValidator.java:[306,3]
method does not override a method from its superclass
/home/senaka/bval/bval-jsr303/src/main/java/org/apache/bval/jsr303/ClassValidator.java:[340,3]
method does not override a method from its superclass
/home/senaka/bval/bval-jsr303/src/main/java/org/apache/bval/jsr303/ClassValidator.java:[626,44]
cannot find symbol
symbol : method isEmpty()
location: class java.lang.String
[INFO]
------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO]
------------------------------------------------------------------------
[INFO] Total time: 47 seconds
[INFO] Finished at: Tue Jun 29 20:54:54 LKT 2010
[INFO] Final Memory: 44M/316M
[INFO]
------------------------------------------------------------------------
Thanks,
Senaka.
On Tue, Jun 29, 2010 at 2:00 AM, Matt Benson (JIRA) <[email protected]> wrote:
>
> [
> https://issues.apache.org/jira/browse/BVAL-70?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12883276#action_12883276]
>
> Matt Benson commented on BVAL-70:
> ---------------------------------
>
> In light of all this infromation, I suppose you can close as INVALID. I'll
> just use my local patch until I am able to upgrade to Eclipse 3.6, which is
> reported as no longer showing an error when a method declared in an
> interface (rather than a superclass) is annotated with @Override.
>
> Thanks all,
> Matt
>
> > Remove @Override annotations from methods implementing interfaces
> > -----------------------------------------------------------------
> >
> > Key: BVAL-70
> > URL: https://issues.apache.org/jira/browse/BVAL-70
> > Project: BeanValidation
> > Issue Type: Improvement
> > Components: jsr303
> > Affects Versions: 0.2-incubating
> > Reporter: Matt Benson
> > Priority: Trivial
> > Attachments: overrides.patch.txt
> >
> >
> > The source level of the bval project as a whole is set at 1.5. The best
> I've been able to determine, 1.6 permits these annotations but 1.5 does not.
> In particular, Eclipse complains about these, but again, my research seems
> to bear it out.
>
> --
> This message is automatically generated by JIRA.
> -
> You can reply to this email to add a comment to the issue online.
>
>
--
Senaka Fernando
Associate Technical Lead
WSO2 Inc.
E-mail: senaka AT wso2.com; Mobile: +94 77 322 1818
http://www.wso2.com/ - "Lean . Enterprise . Middleware"