|
|
|
|
|
|
|
Re: 2.4RC3 Problems with import from annotated Java [message #420122 is a reply to message #420115] |
Wed, 18 June 2008 15:38 |
Ed Merks Messages: 33140 Registered: July 2009 |
Senior Member |
|
|
Helge,
Comments below.
Helge Böhme wrote:
> Hello Ed,
>
> On Wed, 18 Jun 2008, Ed Merks wrote:
>
>> The one I sent is just the sources from the tutorial. Are you able
>> to create a new GenModel from those sources?
>
> Yes! And then I compared them with my sourcefiles and found
> automatically inserted imports like
> import java.io.Writer;
> import java.awt.print.Book;
> These were folded in so I didn't noticed them at all. This occurred
> while the copy-paste sequence as shown in the tutorial. This should be
> changed to a file copy sequence so this will not happen.
>
> So the problem of the import is the missing error message for the
> exception which is only visible in the error log. The error message
> should contain a link to the source file location in which the error
> occurred (then I would have found the wrong import lines for myself).
If you provide a test case of something that's handled poorly, and open
a bugzilla with that, we'd definitely help with that. It seems to me
the tutorial providing a zip file you can import would make life easier
as well. A bugzilla suggesting that's a good idea.
>
>> I don't doubt it, but if I try it and it works then I need to try
>> exact what you're trying that doesn't work. Can you share the
>> example you're using that doesn't work? If you could export that
>> project and attach it, that would help.
>
> Sorry I can't give our model away. But learning from the library
> experience I removed all links to external libs from our model so it
> is self-contained. Now I will reduce the model as long as it works.
> Currently I get another exception in the error log:
> java.lang.ClassCastException:
> org.eclipse.emf.codegen.merge.java.facade.ast.ASTJAnnotation Type
> cannot be cast to org.eclipse.emf.codegen.merge.java.facade.JType
> at
> org.eclipse.emf.importer.java.builder.JavaEcoreBuilder.analy zeCompilationUnit(JavaEcoreBuilder.java:905)
>
> at
> org.eclipse.emf.importer.java.builder.JavaEcoreBuilder.trave rse(JavaEcoreBuilder.java:882)
>
> at
> org.eclipse.emf.importer.java.builder.JavaEcoreBuilder.trave rse(JavaEcoreBuilder.java:847)
>
> at
> org.eclipse.emf.importer.java.builder.JavaEcoreBuilder.trave rse(JavaEcoreBuilder.java:851)
>
> at
> org.eclipse.emf.importer.java.builder.JavaEcoreBuilder.trave rse(JavaEcoreBuilder.java:851)
>
> at
> org.eclipse.emf.importer.java.builder.JavaEcoreBuilder.trave rse(JavaEcoreBuilder.java:851)
>
> at
> org.eclipse.emf.importer.java.builder.JavaEcoreBuilder.trave rse(JavaEcoreBuilder.java:851)
>
> at
> org.eclipse.emf.importer.java.builder.JavaEcoreBuilder.trave rse(JavaEcoreBuilder.java:851)
>
> at
> org.eclipse.emf.importer.java.builder.JavaEcoreBuilder.analy zeProject(JavaEcoreBuilder.java:309)
>
> at
> org.eclipse.emf.importer.java.builder.JavaEcoreBuilder.compu teEPackages(JavaEcoreBuilder.java:668)
>
> at
> org.eclipse.emf.importer.java.JavaImporter.doComputeEPackage s(JavaImporter.java:103)
>
> at
> org.eclipse.emf.importer.ModelImporter.computeEPackages(Mode lImporter.java:530)
>
> at
> org.eclipse.emf.importer.java.ui.JavaPackagePage.computeEPac kages(JavaPackagePage.java:108)
>
> at
> org.eclipse.emf.importer.java.ui.JavaPackagePage$2.execute(J avaPackagePage.java:83)
>
>
> This is a similar problem, again no user friendly error message with
> source code location is created.
Well, yes, we don't expect the failure, so we log the problem but need
to change the code to not have the problem.
>
> For now thank you for your assistance and I will move to bugzilla for
> the error message issue.
Just keep in mind that I need to be able to reproduce each problem so a
test case of some sort (doesn't have to be your proprietary code) is
essential. Sometimes people send me their code directly so I can use it
to fix the problem without them having to share that code with the
community at large.
>
> Helge
Ed Merks
Professional Support: https://www.macromodeling.com/
|
|
|
Powered by
FUDForum. Page generated in 0.03856 seconds