<html>
<head>
<meta content="text/html; charset=windows-1252"
http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<div class="moz-cite-prefix"><br>
First at all, please create an issue in
<a class="moz-txt-link-freetext" href="https://issues.jboss.org/browse/JBIDE">https://issues.jboss.org/browse/JBIDE</a> to solve this problem in the
next release.<br>
A pull request for
<a class="moz-txt-link-freetext" href="https://github.com/jbosstools/jbosstools-hibernate">https://github.com/jbosstools/jbosstools-hibernate</a> would be useful
too :)<br>
<br>
On 04/20/2015 04:44 AM, Bastian Ugimachi wrote:<br>
</div>
<blockquote
cite="mid:CAFEyyCJu+-LgoQ5HuCDhy9Kn9sPLSUB1+vOwoOD8-8BhLU=oQw@mail.gmail.com"
type="cite">
<div dir="ltr">
<p>Dear all,</p>
<p>I am currently working on an Eclipse-Plugin that is built on
top of the Hibernate Tools project. For example, I am using
the following statements to get the AST of a named query:</p>
<p>try {<br>
HqlParser parser = HqlParser.getInstance(statementString);<br>
parser.statement();<br>
} catch (RecognitionException | TokenStreamException e) {<br>
e.printStackTrace();<br>
}<br>
AST statementAst = parser.getAST();</p>
<p>For this to work well with Hibernate Tools Version 4.0.0, I
added bundle org.hibernate.eclipse.libs as required bundle to
my plug-in configuration (which resolved to
org.hibernate.eclipse.libs_4.0.0.Final-v20141016-1911-B82 so
far). </p>
<p>However, I now updated to Hiberate Tools 4.0.1
(org.hibernate.eclipse.libs_4.0.1.Final-v20150324-2307-B95).
The problem I have now is that the following imports cannot be
resolved:<br>
import antlr.RecognitionException;<br>
import antlr.TokenStreamException;<br>
import antlr.collections.AST;</p>
<p>The problem seems to arise from the fact, that in the new
version's MANIFEST.MF, the antlr... packages are not exported
and lib/hibernate/antlr-2.7.6.jar is not listed in the
Bundle-ClassPath any more (I reformatted both MANIFEST.MFs,
that you can find attached, to allow a convenient comparison).
After manually adding the antlr-related entries to the new
version's MANIFEST.MF, my code works pretty well again.</p>
<p>My question is thus:<br>
(a) Do you consider this to be a bug in the realease of
Hibernate Tools 4.0.1?<br>
(b) If yes for (a): Do you have an idea when this issue could
be solved?<br>
(c) If no for (a): Which alternative solution would you
suggest? I mean, manually editing the MANIFEST.MF of realeased
plug-ins is not quite the best practice, is it? I tried to
manally add antlr-2.7.6.jar as library to my project, which
solved the compilation error, but yields a
java.lang.ClassNotFoundException: antlr.LLkParser cannot be
found by
org.hibernate.eclipse.libs_4.0.1.Final-v20150324-2307-B95</p>
<p>Any advice?</p>
<p>Thanks!<br>
Bastian</p>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
jbosstools-dev mailing list
<a class="moz-txt-link-abbreviated" href="mailto:jbosstools-dev@lists.jboss.org">jbosstools-dev@lists.jboss.org</a>
<a class="moz-txt-link-freetext" href="https://lists.jboss.org/mailman/listinfo/jbosstools-dev">https://lists.jboss.org/mailman/listinfo/jbosstools-dev</a></pre>
</blockquote>
<br>
</body>
</html>