Uploaded image for project: 'JBoss Enterprise Application Platform'
  1. JBoss Enterprise Application Platform
  2. JBEAP-69

Class names with $ generates a warning

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Minor
    • 7.0.0.DR10
    • 6.2.0.GA
    • None
    • None

    Description

      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

      Attachments

        Issue Links

          Activity

            People

              dlloyd@redhat.com David Lloyd
              oarribas@redhat.com Oscar Arribas Arribas
              Martin Simka Martin Simka
              Martin Simka Martin Simka
              Votes:
              0 Vote for this issue
              Watchers:
              8 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: