History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: IDEADEV-13244
Type: Bug Bug
Status: Open Open
Priority: Normal Normal
Assignee: Alexey Kudravtsev
Reporter: Sascha Weinreuter
Votes: 1
Watchers: 2
Operations

If you were logged in you would be able to see more operations.
IDEA: Development

Missing validation and highlighting for injected Java language

Created: 08 Nov 06 18:56   Updated: 16 Jan 07 17:31
Component/s: Editor. Error Highlighting, Plugin Support. API
Fix Version/s: None

Original Estimate: Unknown Remaining Estimate: Unknown Time Spent: Unknown

Build: 6,083
Severity: High


 Description  « Hide
If the JAVA language is injected into the "java-class" tag from the example below, no semantic highlighting and validation is performed: "out" in "System.out.println" is not highlighted as static field reference and "new IDontExist()" is not highlighted as "Cannot resolve symbol".

This highlighting is just as important as the syntax (error) highlighting (which is performed).

The highlighting should also work for other languages that embed Java-fragments via their IChameleonElementTypes, such as com.intellij.psi.impl.source.tree.JavaElementType.IMPORT_LIST

<test>
  <java-class>
    class Foo {
      void foo() {
        System.out.println(new IDontExist());
      }
    }
  </java-class>
</test>


 All   Comments   Work Log   Change History      Sort Order:
There are no comments yet on this issue.