Bug 1193113 - Annotation Scanning is Broken by the Use of Java 8 Syntax
Summary: Annotation Scanning is Broken by the Use of Java 8 Syntax
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: JBoss Enterprise Application Platform 6
Classification: JBoss
Component: Other
Version: 6.3.3
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: post-GA
: ---
Assignee: Kabir Khan
QA Contact: Jan Martiska
Tom WELLS
URL:
Whiteboard:
Depends On: 1148021
Blocks: 1195283
TreeView+ depends on / blocked
 
Reported: 2015-02-16 15:23 UTC by Jimmy Wilson
Modified: 2019-04-16 14:36 UTC (History)
7 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2015-03-10 18:15:30 UTC
Type: Support Patch
Embargoed:


Attachments (Terms of Use)
jdk8-with-failure.tar.gz (7.67 KB, application/x-gzip)
2015-02-16 15:23 UTC, Jimmy Wilson
no flags Details
jdk8-with-warning.tar.gz (18.47 KB, application/x-gzip)
2015-02-16 15:28 UTC, Jimmy Wilson
no flags Details
warning.txt (1.63 KB, text/plain)
2015-02-16 15:29 UTC, Jimmy Wilson
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Red Hat Bugzilla 1195283 1 None None None 2021-01-20 06:05:38 UTC
Red Hat Knowledge Base (Solution) 1352603 0 None None None Never
Red Hat Product Errata RHBA-2015:0673 0 normal SHIPPED_LIVE Red Hat JBoss Enterprise Application Platform 6.3.3 bug fix update 2015-03-10 22:14:55 UTC

Internal Links: 1195283

Description Jimmy Wilson 2015-02-16 15:23:49 UTC
Created attachment 992247 [details]
jdk8-with-failure.tar.gz

If a deployment is compiled with Java 8 and uses classes that use Lambda's (a Java 8 feature), it will log a warning, but still work.

If a deployment is compiled with Java 8 and uses Lambda's in the same class as one with EE annotations, the deployment will not be recognized.  See attached jdk8-with-failure.zip.

This happens regardless of ZIP or RPM install because scanning is done on deployment.

Comment 2 Jimmy Wilson 2015-02-16 15:28:03 UTC
Attaching jdk8-with-warning.tar.gz that demonstrates the warning attached as warning.txt for the cases where EE annotated classes use other classes that use Java 8 syntax.

Comment 3 Jimmy Wilson 2015-02-16 15:28:31 UTC
Created attachment 992249 [details]
jdk8-with-warning.tar.gz

Comment 4 Jimmy Wilson 2015-02-16 15:29:13 UTC
Created attachment 992250 [details]
warning.txt

Comment 16 Jan Martiska 2015-03-06 09:11:37 UTC
This is fixed via individual patch in BZ 1195283. For details see that bugzilla.

Comment 18 errata-xmlrpc 2015-03-10 18:15:30 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://rhn.redhat.com/errata/RHBA-2015-0673.html


Note You need to log in before you can comment on or make changes to this bug.