aries-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Freeman Fang (JIRA)" <>
Subject [jira] [Commented] (ARIES-1546) make proxy-impl works with java9
Date Mon, 25 Jul 2016 15:13:20 GMT


Freeman Fang commented on ARIES-1546:

Hi Guillaume,

Thanks for looking into this patch.

The original purpose of this patch isn't build proxy impl with java9, still build with java8
but can run it with java9 in Karaf. Like we have proxy-impl dependency in Karaf, and if we
build/run Karaf with java9, this patch fix issue we hit in Karaf with java9.

Anyway, I just did some experimental for building proxy-impl with java9, with some more classloader.getResourceAsStream
change, I get most tests passed,  but still have 4 failed
  InterfaceProxyingTest.testGetProxyInstance2:122 » UnableToProxy java.lang.Clas...
  InterfaceProxyingTest.testHandlesObjectMethods:223 » UnableToProxy java.lang.C...
  WovenProxyPlusSubclassGeneratorTest.testAddingInterfacesToClass:219 » UnableToProxy
  WovenSubclassGeneratorTest.testAddingInterfacesToClass:200 » UnableToProxy jav...

And the cause are same
org.apache.aries.proxy.UnableToProxyException: java.lang.ClassFormatError: Absent Code attribute
in method that is not native or abstract in class file Proxyd262d56c_3a5c_4ff8_a417_93fe3554cc36
	at java.lang.ClassLoader.defineClass1(java.base@9-ea/Native Method)
	at java.lang.ClassLoader.defineClass(java.base@9-ea/
	at org.apache.aries.proxy.impl.interfaces.ProxyClassLoader.createProxyClass(
	at org.apache.aries.proxy.impl.interfaces.InterfaceProxyGenerator.getProxyInstance(

FYI, I'm still on it and hopefully I will attach a new patch soon.

Best Regards

> make proxy-impl works with java9
> --------------------------------
>                 Key: ARIES-1546
>                 URL:
>             Project: Aries
>          Issue Type: Improvement
>          Components: Proxy
>            Reporter: Freeman Fang
>            Assignee: Guillaume Nodet
>         Attachments: ARIES-1546.patch

This message was sent by Atlassian JIRA

View raw message