Indexing into type ‘%’ is not supported

Lets say you have the following structure in Java:

class A {
  static class B {
    int c;
  }
}

Today I was trying to use a construction like:

<field:display field=”b.c” object=”${a}”/>

And got:

org.springframework.expression.spel.SpelEvaluationException: EL1027E:(pos 6): Indexing into type ‘org.andy.A$B’ is not supported

Why indexing? What indexing? It appears that this issue happens when the property getter in not found. And the getter is not found since only simple properties are allowed in the field. The issue vanished after rewriting things to

<field:display field=”c” object=”${a.b}”/>

God bless open-source

Advertisements
This entry was posted in Development, Uncategorized and tagged . Bookmark the permalink.

One Response to Indexing into type ‘%’ is not supported

  1. Olego says:

    Thanks for this help, i didn’t quite get what this error Message wanted me to do… but now i don’t need to worry anymore 🙂

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s