[jboss-jira] [JBoss JIRA] Commented: (JBAS-3484) non portable JDK dependant clasess (sun.**)

Andrew Oliver (JIRA) jira-events at jboss.com
Mon Aug 7 15:03:12 EDT 2006


    [ http://jira.jboss.com/jira/browse/JBAS-3484?page=comments#action_12340777 ] 
            
Andrew Oliver commented on JBAS-3484:
-------------------------------------

I'm just going to change it to use the exact same functionality in java.lang.String instead.  They were very industrious.  Their own XML writer AND they went to the low levels of the JDK for character encoding instead of just using java.lang.String.

> non portable JDK dependant clasess (sun.**)
> -------------------------------------------
>
>                 Key: JBAS-3484
>                 URL: http://jira.jboss.com/jira/browse/JBAS-3484
>             Project: JBoss Application Server
>          Issue Type: Bug
>      Security Level: Public(Everyone can see) 
>          Components: JMS service, Security
>    Affects Versions: JBossAS-5.0.0.CR1, JBossAS-4.0.4.GA
>            Reporter: Andrew Oliver
>
> We should not be using sun.** classes in tests or in code.   they are naughty and break working on non Sun JDKs.
> [andy at localhost jboss-4.0.x]$ find . -name "*.java" -exec grep -i "sun.misc.BASE64Encoder" '{}' ';'
>       sun.misc.BASE64Encoder encoder = new sun.misc.BASE64Encoder();
> [andy at localhost jboss-4.0.x]$ find . -name "*.java" -exec grep -Hi "sun.misc.BASE64Encoder" '{}' ';'
> ./security/src/main/org/jboss/test/UtilTestCase.java:      sun.misc.BASE64Encoder encoder = new sun.misc.BASE64Encoder();
> [andy at localhost jboss-4.0.x]$ find . -name "*.java" -exec grep -Hi "sun.misc" '{}' ';'
> ./security/src/main/org/jboss/test/UtilTestCase.java:   /** Compare Util.encodeBase64 against the sun misc class
> ./security/src/main/org/jboss/test/UtilTestCase.java:      sun.misc.BASE64Encoder encoder = new sun.misc.BASE64Encoder();
> ./jaxrpc/src/main/org/jboss/axis/utils/Base64.java: * Eliminates dependency on sun.misc.Base64Encoding,
> ./jaxrpc/src/main/org/jboss/axis/utils/Base64.java: * (it's an access exception to load sun.misc.* classes
> [andy at localhost jboss-4.0.x]$ find . -name "*.java" -exec grep -Hi "sun.io" '{}' ';'
> ./messaging/src/main/org/jboss/mq/xml/XElement.java:         sun.io.CharToByteUTF8 conv = new sun.io.CharToByteUTF8();
> ./messaging/src/main/org/jboss/mq/xml/XElement.java:      } catch ( sun.io.MalformedInputException e ) {
> [andy at localhost jboss-4.0.x]$
> Moreover the 

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the jboss-jira mailing list