📄 faq.html
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"><!-- Content Stylesheet for Site --> <!-- start the processing --> <!-- ====================================================================== --> <!-- Main Page Section --> <!-- ====================================================================== --> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"/> <meta name="author" value="Jason van Zyl"> <meta name="email" value="jvanzyl@zenplex.com"> <title>BCEL - BCEL FAQ</title> </head> <body bgcolor="#ffffff" text="#000000" link="#525D76"> <table border="0" width="100%" cellspacing="0"> <!-- TOP IMAGE --> <tr> <td align="left"><a href="http://jakarta.apache.org"><img src="http://jakarta.apache.org/images/jakarta-logo.gif" border="0"/></a></td><td align="right"><a href="http://jakarta.apache.org/bcel"><img src="./images/bcel-logo.gif" alt="BCEL" border="0"/></a></td> </tr> </table> <table border="0" width="100%" cellspacing="4"> <tr><td colspan="2"> <hr noshade="" size="1"/> </td></tr> <tr> <!-- LEFT SIDE NAVIGATION --> <td width="20%" valign="top" nowrap="true"> <p><strong>BCEL</strong></p> <ul> <li> <a href="./index.html">Front Page</a></li> <li> <a href="./news.html">News & Status</a></li> </ul> <p><strong>Documentation</strong></p> <ul> <li> <a href="./manual.html">Manual</a></li> <li> <a href="./faq.html">FAQ</a></li> </ul> <p><strong>Download</strong></p> <ul> <li> <a href="http://jakarta.apache.org/site/binindex.html">Binaries</a></li> <li> <a href="http://jakarta.apache.org/site/sourceindex.html">Source Code</a></li> </ul> <p><strong>Get Involved</strong></p> <ul> <li> <a href="http://cvs.apache.org/viewcvs/jakarta-bcel/">CVS Repository</a></li> <li> <a href="http://jakarta.apache.org/site/mail.html">Mailing Lists</a></li> <li> <a href="http://jakarta.apache.org/site/bugs.html">Issue Tracking</a></li> <li> <a href="./contributors.html">Contributors</a></li> <li> <a href="./license.html">License</a></li> <li> <a href="./projects.html">Projects</a></li> </ul> </td> <td width="80%" align="left" valign="top"> <table border="0" cellspacing="0" cellpadding="2" width="100%"> <tr><td bgcolor="#525D76"> <font color="#ffffff" face="arial,helvetica,sanserif"> <a name="FAQ"><strong>FAQ</strong></a> </font> </td></tr> <tr><td> <blockquote> <p> <b>Q: </b> Is the BCEL thread-safe? <br /> <b>A: </b>BCEL was (deliberately) not designed for thread safety. See <a href="http://java.sun.com/docs/books/cp/"> "Concurrent Programming in Java"</a>, by Doug Lea, for an excellent reference on how to build thread-safe wrappers. </p> <p> <b>Q: </b> Can I use BCEL in a commercial product? <br /> <b>A: </b> Yes, this is covered by the <a href="license.html">Apache License</a>, if you add a note about the original author and where to find the sources, i.e., this URL. </p> <p> <b>Q: </b> (Typically for users of Xalan (XSLTC)) I'm getting <pre> ... ClassGenException: Branch target offset too large for short </pre> when compiling large files. <br /> <b>A: </b> The answer lies in internal limitations of the JVM, branch instruction like goto can not address offsets larger than a short integer, i.e. offsets >= 32767.<br /> The solution is to split the branch into in intermediate hops, which the XSLTC obviously doesn't take care off. (In fact you could replace gotos with the goto_w instruction, but this would help in the other cases). </p> <p> <b>Q:</b> Can I create or modify classes dynamically with BCEL? <br /> <b>A:</b> BCEL contains useful classes in the <tt>util</tt> package, namely <tt>ClassLoader</tt> and <tt>JavaWrapper</tt>. Take a look at the <tt> ProxyCreator</tt> example. </p> </blockquote> </p> </td></tr> <tr><td><br/></td></tr> </table> </td> </tr> <!-- FOOTER --> <tr><td colspan="2"> <hr noshade="" size="1"/> </td></tr> <tr><td colspan="2"> <div align="center"><font color="#525D76" size="-1"><em> Copyright © 1999-2001, Apache Software Foundation </em></font></div> </td></tr> </table> </body> </html><!-- end the processing -->
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -