I am not sure...???

Steps to reproduce...

Checkout eclipse link example: svn co
http://svn.apache.org/repos/asf/tomee/tomee/trunk/examples/jpa-eclipselink
cd jpa-eclipselink
mvn test

>> All Good

edit pom, update configuration source and target to java 1.8 and add
following:

                <dependency>
                        <groupId>org.eclipse.jdt</groupId>
                        <artifactId>org.eclipse.jdt.annotation</artifactId>
                        <version>2.0.0</version>
                        <scope>compile</scope>
                </dependency>

mvn test

>> Still all good

Edit Movie.java as follows:

        Add import org.eclipse.jdt.annotation.Nullable;
        Add @Nullable annotation to getDirector()

mvn compile

>> Still all Good

mvn test

>> Fail 
javax.naming.NameNotFoundException: Name "global/jpa-eclipselink/Movies" not
found.

And further up in the console output you can see why:
WARNING - Unable to scrape for @Stateful, @Stateless, @Singleton or
@MessageDriven annotations. AnnotationFinder failed.
java.lang.RuntimeException
        at org.apache.xbean.asm5.MethodVisitor.visitTypeAnnotation(Unknown 
Source)
        at org.apache.xbean.asm5.ClassReader.b(Unknown Source)
        at org.apache.xbean.asm5.ClassReader.accept(Unknown Source)
etc

Regards
Colin






--
View this message in context: 
http://tomee-openejb.979440.n4.nabble.com/Java-8-Type-Annotations-cause-error-is-that-expected-tp4676168p4676170.html
Sent from the TomEE Users mailing list archive at Nabble.com.

Reply via email to