[Logo] Enterprise Client Community
  [Search] Search   [Recent Topics] Recent Topics   [Members]  Member Listing   [Groups] Back to home page 
[Register] Register / 
[Login] Login 
Problem Bean Browser - Code Generator  XML
Forum Index -> Development
Author Message
mreich

Power User
[Avatar]

Joined: 30/01/2009 08:34:23
Messages: 750
Offline

Hi,

I have a problem with the Code Generator in the Editor Tool.
When I click "Edit class" in the context menue in the Bean Browser on certain classes,
I get following error message: org.eclnt.editor.codegen.GenerationException: java.lang.IllegalStateException: AST implements not found

I can really find no difference between the implemtation of beans that work and beans that doesn't?

Markus
 Filename log.zip [Disk] Download
 Description
 Filesize 16 Kbytes
 Downloaded:  347 time(s)

[WWW]
CaptainCasa

Power User
[Avatar]

Joined: 21/11/2007 12:23:06
Messages: 5542
Offline

Hi,

the bean browser is based on following class-reflection.
The code generator is based on parsing the source code, using the Apache "jaxme" project. This parser understand quite a lot of Java code but also fails with some issues (e.g. we experience errors when class own an inner interface definition...).

AST it the abstract syntax tree that is internally built up...

If you want, you can send the class to me and we can take a look.

Björn

Björn Müller, CaptainCasa GmbH
mreich

Power User
[Avatar]

Joined: 30/01/2009 08:34:23
Messages: 750
Offline

That could be the cause!

The classes are mostly PopUps, so I defined a local public callback interface: e.g.

Code:
public interface IPopupCallback {
 		public void cancel();
 	}


I've now extracted the interface and voila, reflection does it's job ;-)

Thanx
[WWW]
CaptainCasa

Power User
[Avatar]

Joined: 21/11/2007 12:23:06
Messages: 5542
Offline

...to be honest: we do not invest tooo much into solving this "misbehaviour" (yes...: bug...). The code generator typically is used for "first, simple scenarios" and then people tend to more and more do all their things within their IDE...

Please do not misunderstand: you are not doing your "first, simple scenarios", I know!!! But I hope to find some understanding for not doing too much in this area.

Regards, Björn

Björn Müller, CaptainCasa GmbH
mreich

Power User
[Avatar]

Joined: 30/01/2009 08:34:23
Messages: 750
Offline

no problem! In my opinion it's even better style to generalize those callbacks and make own class files!
[WWW]
 
Forum Index -> Development
Go to:   
Powered by JForum 2.1.6 © JForum Team