[jboss-jira] [JBoss JIRA] (WFLY-1289) Spurious warnings about invalid META-INF/services class name

David Lloyd (JIRA) jira-events at lists.jboss.org
Mon Apr 29 09:23:54 EDT 2013


    [ https://issues.jboss.org/browse/WFLY-1289?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12770680#comment-12770680 ] 

David Lloyd commented on WFLY-1289:
-----------------------------------

In reality a class name has very few constraints; it is a series of "unqualified names" separated by periods.  The JVM spec §4.2.2 describes unqualified names:

{quote}
An unqualified name must not contain any of the ASCII characters . ; [ / (that is, period or semicolon or left square bracket or forward slash).
{quote}

Other than these, a class name can contain *any* Unicode code point.  So we clearly have some adjustment to do here. :)
                
> Spurious warnings about invalid META-INF/services class name
> ------------------------------------------------------------
>
>                 Key: WFLY-1289
>                 URL: https://issues.jboss.org/browse/WFLY-1289
>             Project: WildFly
>          Issue Type: Bug
>          Components: Class Loading
>         Environment: 7.2.0.Final
> java version "1.7.0_21"
> Ubuntu 12.04 LTS
>            Reporter: Harald Wellmann
>            Assignee: David Lloyd
>
> When an application contains a {{META-INF/services}} resource referencing an inner class, JBoss prints a spurious warning
> {noformat}
> JBAS015893: Encountered invalid class name 'com.acme.Foo$Bar' for service type 'com.acme.Service'
> {noformat}
> {{META-INF/services}} lists classes with their binary name, so dollar characters are likely to occur.
> {{org.jboss.as.server.deployment.ServiceLoaderProcessor}} scans all {{META-INF/services}} resources but does not accept dollar characters in its validation pattern. 
> (Note: I can't select any 7.x release for "Affects Version".)

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira



More information about the jboss-jira mailing list