Skip to content

Commit

Permalink
Bugfix: Inner classes where not properly resolved inside className at…
Browse files Browse the repository at this point in the history
…tributes in JSP files
  • Loading branch information
dmarks2 committed Jan 11, 2022
1 parent 8be0e07 commit 33b2e2f
Show file tree
Hide file tree
Showing 6 changed files with 21 additions and 0 deletions.
1 change: 1 addition & 0 deletions changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ All notable changes to this project will be documented in this file.
- Feature: Add support for comments in bnd.bnd files
- Bugfix: Exception when trying to inject Javascript inside aui:script-tags containing additonal attributes (like "use" or "require")
- Bugfix: Avoid NullPointerException when trying to lookup documentation for an unknown OSGi property
- Bugfix: Inner classes where not properly resolved inside className attributes in JSP files
- Change: Fixed support for IntelliJ 2021.3

## 0.0.12
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ protected PsiReferenceProvider getReferenceProvider() {

provider.setOption(JavaClassReferenceProvider.ADVANCED_RESOLVE, Boolean.TRUE);
provider.setOption(JavaClassReferenceProvider.RESOLVE_QUALIFIED_CLASS_NAME, Boolean.TRUE);
provider.setOption(JavaClassReferenceProvider.ALLOW_DOLLAR_NAMES, Boolean.FALSE);

return provider;
}
Expand Down
1 change: 1 addition & 0 deletions src/main/resources/META-INF/plugin.xml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@
<li>Feature: Add support for comments in bnd.bnd files</li>
<li>Bugfix: Exception when trying to inject Javascript inside aui:script-tags containing additonal attributes (like "use" or "require")</li>
<li>Bugfix: Avoid NullPointerException when trying to lookup documentation for an unknown OSGi property</li>
<li>Bugfix: Inner classes where not properly resolved inside className attributes in JSP files</li>
<li>Change: Fixed support for IntelliJ 2021.3</li>
</ul>
<p>Version 0.0.12</p>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,11 @@ public void testCompletion() {
assertTrue(strings.contains("MyObject"));
}

public void testCompletionInnerClass() {
myFixture.configureByFiles("inner.jsp", "liferay-aui.tld", "de/dm/Outer.java");
myFixture.complete(CompletionType.BASIC, 1);
List<String> strings = myFixture.getLookupElementStrings();
assertTrue("className should suggest inner classes separated with a dot (and not a dollar sign)", strings.contains("Inner"));
}

}
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
package de.dm;

public interface Outer {

interface Inner {

}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
<%@ taglib uri="http://liferay.com/tld/aui" prefix="aui" %>

<aui:model-context model="de.dm.Outer.<caret>" />

0 comments on commit 33b2e2f

Please sign in to comment.