Hello Rieman,

I have uploaded a new version of ASTParser to DERBY-3946. This version hard-codes the missing context id. The ContextId class does not appear in the released Derby jars because the Derby jar builder eliminates classes which merely contain constants.

Note that to compile and run ASTParser, you will need the debug jars, not the jars in the bin distribution which you are using. That is because ASTParser uses Derby debug logic to print out the ASTs. However, you should be able to crib the ASTParser logic and run it against the jars you currently have--provided that you remove the SanityManager logic which is invoked in order to print the trees.

Hope this helps,
-Rick

Rieman wrote:
I downloaded the db-derby-10.5.3.0-bin.zip and tried to run the
ASTParser.java program with java jdk1.5.0_07, but got the following
exception:
 cannot find symbol
location: package org.apache.derby.iapi.reference
import org.apache.derby.iapi.reference.ContextId;

I cannot find this class in the downloaded jar files.
Where is the jar file that contains this package?

Reply via email to