File tree Expand file tree Collapse file tree 3 files changed +16
-8
lines changed
src/main/kotlin/org/axonframework/intellij/ide/plugin/util Expand file tree Collapse file tree 3 files changed +16
-8
lines changed Original file line number Diff line number Diff line change 2
2
3
3
# Axon Framework plugin Changelog
4
4
5
+ ## [ 0.6.2]
6
+
7
+ ### Fixed
8
+ - [ #59 ] Fixed ClassCastException during querying provider ClassLineMarkerProvider (thanks @kaleev for reporting the error)
9
+
5
10
## [ 0.6.1]
6
11
7
12
### Fixed
Original file line number Diff line number Diff line change 19
19
20
20
pluginGroup =io.axoniq.ide.intellij
21
21
pluginName =Axon Framework
22
- pluginVersion =0.6.1
22
+ pluginVersion =0.6.2
23
23
24
24
# See https://plugins.jetbrains.com/docs/intellij/build-number-ranges.html
25
25
# for insight into build numbers and IntelliJ Platform versions.
Original file line number Diff line number Diff line change @@ -47,15 +47,18 @@ import org.jetbrains.uast.toUElement
47
47
48
48
/* *
49
49
* Convenience method to fully qualified name of type.
50
- * Throws if we get a type we do not expect so we can support it.
51
50
*/
52
51
fun PsiType?.toQualifiedName (): String? = this ?.let {
53
- return when (this ) {
54
- is PsiClassReferenceType -> this .resolve()?.qualifiedName
55
- // Class<SomeClass> object. Extract the <SomeClass> and call this method recursively to resolve it
56
- is PsiImmediateClassType -> (this .parameters.firstOrNull() as PsiClassType ? )?.toQualifiedName()
57
- is PsiWildcardType -> " java.lang.Object"
58
- else -> null
52
+ return try {
53
+ when (this ) {
54
+ is PsiClassReferenceType -> this .resolve()?.qualifiedName
55
+ // Class<SomeClass> object. Extract the <SomeClass> and call this method recursively to resolve it
56
+ is PsiImmediateClassType -> this .parameters.firstOrNull()?.toQualifiedName()
57
+ is PsiWildcardType -> " java.lang.Object"
58
+ else -> null
59
+ }
60
+ } catch (e: Exception ) {
61
+ throw IllegalArgumentException (" Was unable to resolve qualifiedName type ${it.canonicalText} due to exception: ${e.message} " , e)
59
62
}
60
63
}
61
64
You can’t perform that action at this time.
0 commit comments