Bug 1408846 - [GSS](6.4.z) Class names with $ generates a warning
Summary: [GSS](6.4.z) Class names with $ generates a warning
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: JBoss Enterprise Application Platform 6
Classification: JBoss
Component: Server
Version: 6.4.12
Hardware: Unspecified
OS: Unspecified
unspecified
medium
Target Milestone: CR1
: EAP 6.4.14
Assignee: jboss-set
QA Contact: Peter Mackay
eap-docs
URL:
Whiteboard:
Depends On:
Blocks: eap6414-payload
TreeView+ depends on / blocked
 
Reported: 2016-12-27 17:06 UTC by Brad Maxwell
Modified: 2020-04-15 15:02 UTC (History)
6 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2017-03-23 08:25:19 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker JBEAP-69 0 Minor Closed Class names with $ generates a warning 2017-06-13 08:43:33 UTC
Red Hat Issue Tracker WFLY-1401 0 Major Resolved JBAS015893: Encountered invalid class name message when class name is perfectly valid 2017-06-13 08:43:33 UTC
Red Hat Knowledge Base (Solution) 263373 0 None None None 2017-02-24 09:48:29 UTC

Description Brad Maxwell 2016-12-27 17:06:50 UTC
When a class name with $ is loaded, a warning was logged

WARN [org.jboss.as.server.deployment] (MSC service thread 1-15) JBAS015893:
Encountered invalid class name
'com.sun.jersey.json.impl.provider.entity.JSONRootElementProvider$App' for service
type 'javax.ws.rs.ext.MessageBodyReader'

But as http://docs.oracle.com/javase/specs/jls/se7/html/jls-3.html#jls-3.8, the $ is a valid character:

The "Java letters" include uppercase and lowercase ASCII Latin letters A-Z (\u0041-\u005a), and a-z (\u0061-\u007a), and, for historical reasons, the ASCII underscore (_, or \u005f) and dollar sign ($, or \u0024).
The $ character should be used only in mechanically generated source code or, rarely, to access pre-existing names on legacy systems.

More info about this warning: https://access.redhat.com/solutions/263373

Comment 3 Peter Mackay 2017-02-28 09:36:56 UTC
Verified with EAP 6.4.14.CP.CR1

Comment 4 Petr Penicka 2017-03-23 08:25:19 UTC
Released with EAP 6.4.14 on March 14 (ZIPs) and March 22 (RPMs).


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