Seems the issue was like below

Bundle A has a class X (A DTO class) which imports a library built on java
1.6/ 1.7.
Bundle B has a class Y which imports X. And then Y starts using properties
of X.
When building Bundle B it marking Y as an invalid class.

I managed to fix this by removing all java 8 specific codes (lambdas).

Thanks & Regards
Danushka Fernando
Senior Software Engineer
WSO2 inc. http://wso2.com/
Mobile : +94716332729

On Fri, Mar 17, 2017 at 10:57 AM, Danushka Fernando <[email protected]>
wrote:

> Hi All
> For IS 5.3.0 I am developing a custom component. It worked until I added a
> class. I started to get an exception when building from maven bundle
> plugin. Which is exactly the issue in [1]. Then I tried upgrading the
> plugin version to 2.5.0 as mentioned in jira. It built successfully but I
> cannot deploy it to IS.
> So the reason was the amount of imports in the class. When I reduce the no
> of imports it started to work again. But there may be cases we need that
> much imports. Is there a workarround for this?
>
> [1] https://issues.apache.org/jira/browse/FELIX-723
>
> Thanks & Regards
> Danushka Fernando
> Senior Software Engineer
> WSO2 inc. http://wso2.com/
> Mobile : +94716332729 <+94%2071%20633%202729>
>
_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to