Changed behavior compiling machine-generated code.

The tool that we use to generate stubs and skeletons for our CORBA
services generates source containing names like

a.b.AClass$AnInnerClass

when the inner class a.b.AClass.AnInnerClass is the return type of an
operation. IDEA marks up such names as errors in the editor. I don't
have a big problem with that; it seems to me it's the tool that's
broken. Now we're migrating from J2SE 1.3.1 to 1.4.2. In 1.3.1, IDEA
compiles these source files without complaint, despite the mark-up.
However, when IDEA is configured to use 1.4.2 for the project, the
compile fails ("unable to resolve symbol"). Compilation of these files
outside IDEA with the 1.4.2 compiler is successful.

Is there some setting we can change to get IDEA to compile these files
successfully? As I said, the mark-up isn't the issue; the compilation is.

By the way, I'm running build 2155.

2 comments
Comment actions Permalink

Could you please describe the way your project is configured and at what moment the files genenerated?
Also inspection of compiler logs may help to locate the problem, just add

]]>

to the IDEA-HOME/bin/log.xml
Please try this on the latest build available (currently it is #2165)
--
Best regards,
Eugene Zhuravlev
Software Developer
JetBrains Inc.
http://www.jetbrains.com
"Develop with pleasure!"


0
Comment actions Permalink

In the 1.4.2 compiler they have made this illegal, as it always should have been. The $ should be replaced with a '.'. In this case your tool is generating code that should not compile.

0

Please sign in to leave a comment.