class format of line 'import com.tejasoft.${app.name.LC}.mobile.android.R;'

Hi,

We have a special import which gets replaced with exact value of ${app.name.LC} during the build time before javac complile.
However when such class is formatted the import is getting replaced with

{app.name.LC}.mobile.android.R;

This seem to be a bug in Intellij. Could you pl. correct it in future.

Regards,
Nagendra

0
3 comments

Hello Nagendra,

This is not a bug in IntelliJ. IntelliJ is an IDE for editing Java code,
and your special form of import statements is not valid Java syntax.

We have a special import which gets replaced with exact value of
${app.name.LC} during the build time before javac complile.

However when such class is formatted the import is getting replaced
with

{app.name.LC}.mobile.android.R;

This seem to be a bug in Intellij. Could you pl. correct it in future.


--
Dmitry Jemerov
Development Lead
JetBrains, Inc.
http://www.jetbrains.com/
"Develop with Pleasure!"


0

Hi Dmitry,

I agree that the code is not complying to Java Syntax of import.. However formatter should retain syntax error lines as is.. rather than trying to change them to more bad statements.

It is most like a formatter issue.. on how it is reacting to wrong java syntax lines.

Regards,
Nagendra

0

Hello Nagendra,

IntelliJ IDEA is a Java IDE, which means that it's designed for working with
valid Java files. Its behavior for code which is not valid Java is undefined.
It is not a bug in the formatter or any other part of the product.

I agree that the code is not complying to Java Syntax of import..
However formatter should retain syntax error lines as is.. rather than
trying to change them to more bad statements.

It is most like a formatter issue.. on how it is reacting to wrong
java syntax lines.


--
Dmitry Jemerov
Development Lead
JetBrains, Inc.
http://www.jetbrains.com/
"Develop with Pleasure!"


0

Please sign in to leave a comment.