|
[
Permlink
| « Hide
]
Josh Holtzman added a comment - 15-Dec-2006 15:41
Step 1 complete as of r19623
Step 2 completed for calendar tool in revision 20159 (removing sun-specific imports).
Step 2 completed for OSP in revision 20182 (removing sun-specific imports)
This issue is currently scheduled to be addressed for the 2.4 release. There are only 3 days left until code freeze. If know already that this issue will not be addressed for 2.4, please updated the Fix Version with a new estimate of when it will be addressed. Thanks.
Peter, so what you're saying is that 2.4 will only compile and run on the sun JDK. Is the foundation OK with this?
The following eclipse projects import com.sun.org.apache packages. These must be fixed before 2.4 if we want to remain jdk vendor agnostic.
web-impl util-util syllabus sam rwiki-util rwiki-impl podcasts osid news-impl messageforums help content-impl archive-impl Hi Josh, the comment above as bulk-added to all Tasks that are scheduled for 2.4 but have not been addressed yet, so that their fix version could be updated to more accurately reflect when they will get addressed... or, to raise a red-flag so that someone in the know can do something about the issue. This sounds like something that needs to be brought up on sakai-dev so that all the remaining projects have a chance to fix things for 2.4. (I've also bumped the priority on this to Blocker.)
Updated help to use javax.xml APIs.
Fixed rwiki-util and rwiki-impl
Still need Xerces and Xalan in its own classloader as it does custom serialization. Could somebody provide specifics about how Base64 encoding/decoding should be handled? That seems to be the part that is at issue in content-impl. Also, is Peter's description of step one ("rename all org.apache.foo xml api imports to use com.sun.org.apache.foo.internal") correct? Other comments seem to say the opposite.
Step one was completed a while ago... this is what allowed us to remove the compat pack quickly. Removing the com.sun.* imports is the "clean up" needed from to deal with our quick-and-dirty removal of the compat pack.
As for base64 encoding / decoding, can you use commons-codec? Removed osid from the to-do list.
This issue also applied to the web2bridge OSID implementation in the citations tree.
The web2bridge implementation has been corrected. Here is a list of all the remaining locations of classes in the JVM.
One addtion is the blog tool which uses JPEG classes from within the JVM The only dificult ones are import com.sun.image.codec.jpeg.JPEGCodec; import com.sun.image.codec.jpeg.JPEGEncodeParam; import com.sun.image.codec.jpeg.JPEGImageEncoder; ./blog/tool/src/java/uk/ac/lancs/e_science/sakai/tools/blogger/util/JpegTransformer.java and import com.sun.org.apache.xerces.internal.impl.dv.util.Base64; import com.sun.org.apache.xml.internal.serialize.OutputFormat; import com.sun.org.apache.xml.internal.serialize.XMLSerializer; ./util/util-util/util/src/java/org/sakaiproject/util/Xml.java this is as of r28540 (ie before the podcast fix) import com.sun.org.apache.xerces.internal.impl.dv.util.Base64; ./archive/archive-impl/impl/src/java/org/sakaiproject/archive/impl/BasicArchiveService.java import com.sun.org.apache.xerces.internal.impl.dv.util.Base64; ./archive/archive-impl/impl2/src/java/org/sakaiproject/archive/impl/ArchiveService2Impl.java import com.sun.org.apache.xerces.internal.impl.dv.util.Base64; ./archive/archive-impl/impl2/src/java/org/sakaiproject/archive/impl/SiteMerger.java import com.sun.image.codec.jpeg.JPEGCodec; import com.sun.image.codec.jpeg.JPEGEncodeParam; import com.sun.image.codec.jpeg.JPEGImageEncoder; ./blog/tool/src/java/uk/ac/lancs/e_science/sakai/tools/blogger/util/JpegTransformer.java import com.sun.org.apache.xerces.internal.impl.dv.util.Base64; ./msgcntr/messageforums-component-impl/src/java/org/sakaiproject/component/app/messageforums/DiscussionForumServiceImpl.java import com.sun.org.apache.xerces.internal.impl.dv.util.Base64; ./podcasts/podcasts/src/java/org/sakaiproject/tool/podcasts/RSSPodfeedServlet.java import com.sun.org.apache.xerces.internal.impl.dv.util.Base64; ./syllabus/syllabus-impl/src/java/org/sakaiproject/component/app/syllabus/SyllabusServiceImpl.java import com.sun.org.apache.xerces.internal.impl.dv.util.Base64; import com.sun.org.apache.xml.internal.serialize.OutputFormat; import com.sun.org.apache.xml.internal.serialize.XMLSerializer; ./util/util-util/util/src/java/org/sakaiproject/util/Xml.java import com.sun.org.apache.xerces.internal.impl.dv.util.Base64; ./web/news-impl/impl/src/java/org/sakaiproject/news/impl/BasicNewsService.java import com.sun.org.apache.xerces.internal.impl.dv.util.Base64; ./web/web-impl/impl/src/java/org/sakaiproject/web/impl/WebServiceImpl.java fixed message center, r28656
commons-codec's base64 utility (see http://jakarta.apache.org/commons/codec/api-release/org/apache/commons/codec/binary/Base64.html) should be able to replace the xerces base64 imports. And javax.xml.Transformer should be able to replace XMLSerializer:
Transformer transformer = TransformerFactory.newInstance().newTransformer(); transformer.transform( new DOMSource(node), new StreamResult(out) ); As for the JPEG encoding, is there something in the javax.imageio package that would work? See http://java.sun.com/j2se/1.4.2/docs/api/javax/imageio/package-summary.html I"ve emailed Adrian and asked him to look at the Blog-related part of this issue.
merged content to 2-4-x r28695
merged citations to 2-4-x r28696 merged podcasts to 2-4-x r28697 merged search to 2-4-x r28698 merged msgcntr to 2-4-x r28699 merged archive to 2-4-x r28700 merged syllabus to 2-4-x r28701 merged web to 2-4-x r28703 merged util to 2-4-x r28704 I wanted to note that I have verified the citations/web2bridge changes in the QA-010 release.
Adding .011 tag as fix version as this item is up for discussion at the release meeting tomorrow. Issues not included will be set back to solely have a nightly2 fix version and will contain a note with reasoning for not including it.
Resolving to cover changes made to-date. Reamining jvm-idenpendence issues will be catpured in a new issue. Please include current revisions in 011.
All of the dependencies have been removed, as originally described in the task. Please open a new bug issue for any problems encountered or a new task for any other dependencies.
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||