Home > error formatting > error formatting macro clickable java.lang.abstractmethoderror

Error Formatting Macro Clickable Java.lang.abstractmethoderror

(clickable)Log In ExportXMLWordPrintableDetails Type: Suggestion Status: Resolved Resolution: Not a bug Affects Version/s: 3.1 Fix Version/s: None Component/s: Editor - Page / Comment Editor Labels: editor editor-macros macros-3rd-party Environment: Debian Linux 64bit, JDK 1.6.0_12, Confluence 3.1 standalone behind Apache 2.2.3 reverse proxy Last commented by user?: true Description With the update from Confluence 3.0.1 to the latest released Confluence version (3.1) the Adaptivist Content Formatting plugin behaves odd. The {clickable} Macro throws the following error on the rendered pages: Error formatting macro: clickable: java.lang.AbstractMethodError The installed version is 1.6.12 and the {clickable} macro is enabled. AttachmentsActivity People Assignee: Unassigned Reporter: Stefan Sorin Nicolin Participants: Mark Hrynczak [Atlassian], Stefan Sorin Nicolin Last Touched By: Owen Sanico Votes: 0 Vote for this issue Watchers: 1 Start watching this issue Dates Created: 09/Dec/2009 4:57 PM Updated: 28/Apr/2016 7:26 AM Resolved: 14/Dec/2009 3:17 AM Last commented: 6 years, 44 weeks, 5 days ago Atlassian JIRA Project Management Software (v7.2.0#72002-sha1:36e1562:node1) About JIRA Report a problem Atlassian

here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join https://jira.atlassian.com/browse/CONF-18016?focusedCommentId=181285&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel them; it only takes a minute: Sign up Error: java.lang.AbstractMethodError when invoking a generic method implementing an interface up vote 1 down vote favorite I am trying to use javassist to programatically create and compile a class (at runtime) that implements an interface. I get the following Error whenever I invoke an instance of that dynamic class: java.lang.AbstractMethodError: FooImpl.test()Ljava/lang/Object; http://stackoverflow.com/questions/23601363/error-java-lang-abstractmethoderror-when-invoking-a-generic-method-implementing Here's my interface public class FooBarInterface { public T getEntity(); } Here's a sample Entity public class FooEntity { @Override public String toString() { return "Hello, Foo!"; } } Here's how I programatically implement the interface public void test() { ClassPool classPool = ClassPool.getDefault(); CtClass testInterface = classPool.get(FooBarInterface.class.getName()); CtClass fooImpl = classPool.makeClass("FooImpl"); fooImpl.addInterface(testInterface); CtMethod testMethod = CtNewMethod.make( "public com.test.FooEntity getEntity(){" + "return new com.test.FooEntity();" + "}", canImpl ); fooImpl.addMethod(testMethod); fooImpl.writeFile(); TestInterface test = (TestInterface) fooImpl.toClass().newInstance(); System.out.println(test.getEntity()); } If I changed the return type of the implemented method to Object, then I don't get the Error, like this: CtMethod testMethod = CtNewMethod.make( "public Object getEntity(){" + "return new com.test.FooEntity();" + "}", canImpl ); Then I successfully get the hello, Foo!. I am OK with changing the return type to Object, but I'd like to understand more why returning with type Foo produces AbstractMethodError. java generics javassist java-bridge-method share|improve this question edited Mar 18 '15 at 14:53 Jeffrey Bosboom 5,193114056 asked May 12 '14 at 5:02 jespeno 7419 ClassPool classPool = ClassPool.getDefault(); these classes a

Camel > Jetty Date Thu, 15 Jul 2010 07:38:00 GMT http://mail-archives.apache.org/mod_mbox/camel-commits/201007.mbox/%3C32515286.4170.1279179480182.JavaMail.confluence@thor%3E rel="stylesheet" href="/confluence/s/1810/9/1/_/styles/combined.css?spaceKey=CAMEL&forWysiwyg=true" type="text/css">