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

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


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-4.0.4.GA, JBossAS-5.0.0.CR1
            Reporter: Andrew Oliver
         Assigned To: Adrian Brock


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