The following issue has been updated: Updater: Anton Adamansky (mailto:[EMAIL PROTECTED]) Date: Sun, 14 Nov 2004 7:42 AM Comment: Hi Fellows !
Heiko W. Rupp wrote: >I don't understand your comment about Token.java. >As this is normally generated on every run .. should the generated one >always >be replaced by the class >supplied by you or is this only meant >for initial bootstrapping? JavaCC generates a set of .java parser files related to actual grammar, but the last 1.5 grammar depends on the specific (custom) Tokens such as GTToken (used to resolve generics cases). And, in order to compile generated parser sourses you need to replace Token.java generated with JavaCC with custom provided Token.java (originally such routines was added by Sreenivasa Viswanadha in his Java 1.5 grammar, please see https://javacc.dev.java.net/source/browse/javacc/examples/JavaGrammars/1.5/ and https://javacc.dev.java.net/servlets/ReadMsg?list=users&msgNo=247) Heiko W. Rupp wrote: > to use javac3.2.2 - what ant version do you use? ant 1.5 expects the > start > method to be in some com.sun.labs class, where javacc3 does > have no com.sun packages. Or how did you incorporate this? I've used ant 1.6.2 ant and replaced old JavaCC.zip with new javacc3.2.2.jar - benefits: parser generated code compiles under jdk 1.5 (may be another benefits and bug fixes :)) >Javacc 2.x as supplied with xdoclet compiles the grammar without >warning, so >I think 2.x should be ok anyway. When using this, I get >failures in the >unit-tests. Considering junit test there is Two issues I've found among of 91 xjavadoc junit test cases: 1) The public void testSuperclass() is not passed for only one particular class: 'XClass', (xjavadoc/etc/xjavadoctest.j#testSuperclass()) The <XDtClass:fullSuperclassName/> returns "java.lang.Object" only for ''XClass' why ?:) (maybe some intristic bug ?) I've commented this vague case. 2) XJavaDocTest#testOldFashioned() attempts to compare creation time of old fashioned class placements, (actual creation times differs) but in this case the parser logic is not responsible to support it. I've commented it too. So i've sent the complete source distribution is created tom make things clearer. Gili wrote: >Secondly, it is not exactly clear to me how to patch XDoclet with >your >attachment to make it support JDK 1.5. Could you please >elaborate? In order to use xdoclet with jdk 1.5 you need (at least at present time :) relace your xjavadoc-1.x.jar in xdoclet/lib with xjavadoc-1.1-j5.jar (you can find it in attached archive xjavadoc-1.1-j5.zip mentioned above) hope it helps you in your projects. PS. Sorry for my file spam, but i've placed in attachment (xjavadoc-1.1-j5-src.zip) the complete source distribution is used to build xjavadoc-1.1-j5.jar. Sincerely yours Adamansky Anton. Changes: Attachment changed to xjavadoc-1.1-j5-src.zip --------------------------------------------------------------------- For a full history of the issue, see: http://opensource.atlassian.com/projects/xdoclet/browse/XJD-41?page=history --------------------------------------------------------------------- View the issue: http://opensource.atlassian.com/projects/xdoclet/browse/XJD-41 Here is an overview of the issue: --------------------------------------------------------------------- Key: XJD-41 Summary: Support Java 1.5 Syntax ? Type: Improvement Status: Open Priority: Major Original Estimate: Unknown Time Spent: Unknown Remaining: Unknown Project: XJavaDoc Components: Parser Fix Fors: 1.2 Versions: 1.0.2 Assignee: xdoclet-devel (Use for new issues) Reporter: Hao Chen Created: Mon, 1 Mar 2004 9:11 AM Updated: Sun, 14 Nov 2004 7:42 AM Description: Is there any plan to upgrade the parser to support Java 1.5 syntax? --------------------------------------------------------------------- JIRA INFORMATION: This message is automatically generated by JIRA. If you think it was sent incorrectly contact one of the administrators: http://opensource.atlassian.com/projects/xdoclet/secure/Administrators.jspa If you want more information on JIRA, or have a bug to report see: http://www.atlassian.com/software/jira ------------------------------------------------------- This SF.Net email is sponsored by: InterSystems CACHE FREE OODBMS DOWNLOAD - A multidimensional database that combines robust object and relational technologies, making it a perfect match for Java, C++,COM, XML, ODBC and JDBC. www.intersystems.com/match8 _______________________________________________ xdoclet-devel mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/xdoclet-devel