Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » NatTable » Exception when using DefaultGlazedListsStaticFilterStrategy(addStaticFilter overrides final method)
Exception when using DefaultGlazedListsStaticFilterStrategy [message #1064518] Wed, 19 June 2013 11:33 Go to next message
Arye Shemesh is currently offline Arye Shemesh
Messages: 12
Registered: November 2012
Junior Member
Hi,

I'm trying to use the DefaultGlazedListsStaticFilterStrategy to add a static filter as described here:
http://sourceforge.net/p/nattable/discussion/744992/thread/be012eb5

I use the method addStaticFilter(final Matcher<T> matcher) to add my filter.

In run time, I get the following exception:

java.lang.VerifyError: class org.eclipse.nebula.widgets.nattable.extension.glazedlists.filterrow.DefaultGlazedListsStaticFilterStrategy$1 overrides final method getMatcher.()Lca/odell/glazedlists/matchers/Matcher;
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:634)
at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.defineClass(DefaultClassLoader.java:188)
at org.eclipse.osgi.baseadaptor.loader.ClasspathManager.defineClass(ClasspathManager.java:601)
at org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findClassImpl(ClasspathManager.java:567)
at org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findLocalClassImpl(ClasspathManager.java:490)
at org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findLocalClass_LockClassLoader(ClasspathManager.java:478)
at org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findLocalClass(ClasspathManager.java:458)
at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.findLocalClass(DefaultClassLoader.java:216)
at org.eclipse.osgi.internal.loader.BundleLoader.findLocalClass(BundleLoader.java:400)
at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:476)
at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:429)
at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:417)
at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:107)
at java.lang.ClassLoader.loadClass(ClassLoader.java:266)
at org.eclipse.nebula.widgets.nattable.extension.glazedlists.filterrow.DefaultGlazedListsStaticFilterStrategy.addStaticFilter(DefaultGlazedListsStaticFilterStrategy.java:62)

I checked the GlazedList code and AbstractMatcherEditor.getMatcher() is really defined as final.
I have the latest GL version 1.9.0 and NatTable version 0.9.0.

Is this a bug?

Thanks,
Arye
Re: Exception when using DefaultGlazedListsStaticFilterStrategy [message #1064544 is a reply to message #1064518] Wed, 19 June 2013 15:46 Go to previous message
Dirk Fauth is currently offline Dirk Fauth
Messages: 1231
Registered: July 2012
Senior Member
The bug is that you use NatTable 0.9 together with GlazedLists 1.9 ... they are not compatible because of an API change in GlazedLists regarding Matcher.

You need to update to NatTable 1.0 to use GlazedLists 1.9 or downgrade to GlazedLists 1.8. I personally suggest to update to NatTable 1.0
Previous Topic:how to force refresh of child rows in tree grid
Next Topic:Issue with Nattable StructuralRefresh command
Goto Forum:
  


Current Time: Thu Jul 31 05:35:49 EDT 2014

Powered by FUDForum. Page generated in 0.01560 seconds