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

Dimitris Andreadis (JIRA) jira-events at jboss.com
Tue Sep 26 04:46:01 EDT 2006


     [ http://jira.jboss.com/jira/browse/JBAS-3484?page=all ]

Dimitris Andreadis closed JBAS-3484.
------------------------------------

    Resolution: Done
      Assignee: Dimitris Andreadis

I looked again at all cases and there is no remaining reference to sun classes.

> 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
>         Assigned To: Dimitris Andreadis
>             Fix For: JBossAS-4.0.5.GA
>
>
> 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