You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by bu...@apache.org on 2012/08/17 22:42:29 UTC

[Bug 53735] New: Update annotation scanning to be compatible with Java 7 class files

https://issues.apache.org/bugzilla/show_bug.cgi?id=53735

          Priority: P2
            Bug ID: 53735
          Assignee: dev@tomcat.apache.org
           Summary: Update annotation scanning to be compatible with Java
                    7 class files
          Severity: normal
    Classification: Unclassified
                OS: Windows XP
          Reporter: knst.kolinko@gmail.com
          Hardware: PC
            Status: NEW
           Version: trunk
         Component: Catalina
           Product: Tomcat 8

As was reported on the users mailing list, the annotation scanning code may
fail when trying to scan a class compiled for Java 7. The thread:

"Tomcat 7.0.29 vs. Groovy with Java 7"
http://tomcat.markmail.org/thread/4y7jfmznleqdczwh

As said there, "It appears that when one installs the groovy-all-2.0.1-indy.jar
in a Tomcat web app, BCEL chokes on the Java 7 specific byte-code therein ala"
[[[
org.apache.tomcat.util.bcel.classfile.ClassFormatException: Invalid byte tag
in constant pool: 15 at
org.apache.tomcat.util.bcel.classfile.Constant.readConstant(Constant.java:131)
at
org.apache.tomcat.util.bcel.classfile.ConstantPool.<init>(ConstantPool.java:60)
at
org.apache.tomcat.util.bcel.classfile.ClassParser.readConstantPool(ClassParser.java:209)
at
org.apache.tomcat.util.bcel.classfile.ClassParser.parse(ClassParser.java:119)
at
org.apache.catalina.startup.ContextConfig.processAnnotationsStream(ContextConfig.java:2066)
]]]

If the problem is with specific libraries (like Groovy 2.0), it is possible to
disable annotation scanning for them (see the thread above).

In general, though, as Tomcat 8 targets Java 7, it should be able to scan such
files.

-- 
You are receiving this mail because:
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


[Bug 53735] Update annotation scanning to be compatible with Java 7 class files

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=53735

Mark Thomas <ma...@apache.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |FIXED

--- Comment #1 from Mark Thomas <ma...@apache.org> ---
Fixed in trunk and 7.0.x and will be included in 7.0.30 onwards.

-- 
You are receiving this mail because:
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org