Syntax Highlighting .tld function-signature

IntelliJ syntax highlighting in .tld files is telling me that my function-signature is incorrect because of a "different return type" when my return type uses generics. For example:

Correct function-signature in .tld:
java.util.Set getChildren(int) Method signature: public static Set getChildren(int entityId) { } If I remove ]]> from the signature the syntax highlighting error disappears. More importantly ctrl-clicking on the signature in the .tld file takes me to the the method.

Is this a bug in IntelliJ? Is there a way to ignore this type of syntax highlighting, while still allowing the ctrl-click functionality?

Thanks for your help,
Michael

6 comments
Comment actions Permalink

Seems to be a bug. No, it could not be switched off without loosing
control click functionality.

Michael Bacarella wrote:

IntelliJ syntax highlighting in .tld files is telling me that my function-signature is incorrect because of a "different return type" when my return type uses generics. For example:

Correct function-signature in .tld:
<function-signature>
java.util.Set getChildren(int)
</function-signature>

Method signature:
public static Set<Entity> getChildren(int entityId) { }

If I remove <Entity> from the signature the syntax highlighting error disappears. More importantly ctrl-clicking on the signature in the .tld file takes me to the the method.

Is this a bug in IntelliJ? Is there a way to ignore this type of syntax highlighting, while still allowing the ctrl-click functionality?

Thanks for your help,
Michael



--
Best regards,
Maxim Mossienko
IntelliJ Labs / JetBrains Inc.
http://www.intellij.com
"Develop with pleasure!"

0
Comment actions Permalink

Thanks for the quick reply. Can't wait for a fix.

0
Comment actions Permalink

I noticed this bug was not fixed in 7.0.3. Will it be fixed in 7.0.4?

Thanks,
Michael

0
Comment actions Permalink

Idea highlights signature without type parameters in return type as
erroneous, is it correct?

Michael Bacarella wrote:

I noticed this bug was not fixed in 7.0.3. Will it be fixed in 7.0.4?

Thanks,
Michael



--
Best regards,
Maxim Mossienko
IntelliJ Labs / JetBrains Inc.
http://www.intellij.com
"Develop with pleasure!"

0
Comment actions Permalink

Idea highlights signature without type parameters in return type as
erroneous, is it correct?

Almost ...

return type and/or arguments

0
Comment actions Permalink

http://www.jetbrains.net/jira/browse/IDEADEV-25320
will be fixed in 7.0.4

Michael Bacarella wrote:

Idea highlights signature without type parameters in return type as
erroneous, is it correct?

Almost ...

return type and/or arguments



--
Best regards,
Maxim Mossienko
IntelliJ Labs / JetBrains Inc.
http://www.intellij.com
"Develop with pleasure!"

0

Please sign in to leave a comment.