[ 
https://issues.apache.org/jira/browse/DERBY-3986?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12764605#action_12764605
 ] 

Knut Anders Hatlen commented on DERBY-3986:
-------------------------------------------

Not only are the generated grammars dropped into the svn-controlled space, but 
at least two of the generated files are even checked in 
(impl/sql/compile/ParseException.java and impl/tools/ij/ParseException.java) so 
that they are not re-generated. I tried to remove them and did "ant clobber" + 
"ant" to regenerate them, and then some of the syntax errors actually became 
more helpful.

For example, the error message for this statement

ij> create table t;

changed from

ERROR 42X01: Syntax error: Encountered "<EOF>" at line 1, column 14.

to the more helpful

ERROR 42X01: Syntax error: Encountered "<EOF>" at line 1, column 14.
Was expecting one of:
    "as" ...
    "(" ...
    .

Some of the error messages did however become very long after this change, like 
the error for "select * from t1 inner join t2" which listed more than 150 
alternatives.

> Stop dropping build artifacts in the subversion-controlled source tree
> ----------------------------------------------------------------------
>
>                 Key: DERBY-3986
>                 URL: https://issues.apache.org/jira/browse/DERBY-3986
>             Project: Derby
>          Issue Type: Improvement
>          Components: Build tools
>    Affects Versions: 10.5.1.1
>            Reporter: Rick Hillegas
>         Attachments: derby-3986-01-aa-checkCompilerLevel.diff
>
>
> The Derby build drops various artifacts in the source tree. Build artifacts 
> should not muddy subversion controlled directories but should, instead, go 
> into temporary directories created by the the build. 
> The following is a (perhaps partial) list of artifacts currently dropped into 
> subversion-controlled space:
> Sanity directives
> Generated grammars
> The English error messages
> Data type class sizes
> Toursdb
> Temporary class for verifying compiler level

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to