[hibernate-issues] [Hibernate-JIRA] Created: (BVAL-236) Fails to load META-INF/services provider configuration files on non-ASCII platforms

Paul Vonnahme (JIRA) noreply at atlassian.com
Thu Aug 4 18:40:11 EDT 2011


Fails to load META-INF/services provider configuration files on non-ASCII platforms 
------------------------------------------------------------------------------------

                 Key: BVAL-236
                 URL: http://opensource.atlassian.com/projects/hibernate/browse/BVAL-236
             Project: Bean Validation
          Issue Type: Bug
          Components: ri-general - obsolete go to HValidator
    Affects Versions: 1.0 final
            Reporter: Paul Vonnahme


I'm not sure if this is the correct place for this issue, but I didn't see anything under HValidator about ri.  This bug exists in the maven artifact 

<dependency>
  <groupId>javax.validation</groupId>
  <artifactId>validation-api</artifactId>
  <version>1.0.0.GA</version>
</dependency>

If there is a newer version that fixes this bug I apologize.  In any case, in the jar above, the issue occurs in javax.validation.Validation$DefaultValidationProviderResolver.getValidationProviders

Line 322 has:
BufferedReader reader = new BufferedReader( new InputStreamReader( stream ), 100 );

but I believe it should be:
BufferedReader reader = new BufferedReader( new InputStreamReader( stream, "UTF-8"), 100 );

In order to work on non-ASCII platforms (EBCDIC in my case)

>From http://download.oracle.com/javase/6/docs/technotes/guides/jar/jar.html#Provider%20Configuration%20File

Provider-Configuration File
A service provider identifies itself... The file must be encoded in UTF-8.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the hibernate-issues mailing list