Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [e4-dev] Strange behaviour in e4 DI

In the second case it concatenates the strings and checks the
resulting string if it's null or not. Parenthesize the readerService
== false.

On Jun 7, 2012, at 5:33, bharath kumar <bharathkumar.a@xxxxxxxxx> wrote:

> Hi,
>
> I tried to use OSGI log service in one of the Part. So I have added the below code ( DI) and I found a strange behaviour. The second SOP prints only "false". It is not printing  the string "Log Reader service "
> It looks like there is a problem in the code generation ??
>
>
> @Inject
> ExtendedLogService logger;
> 	
> @Inject
> LogReaderService readerService;
> 	
> @PostConstruct
> public void init(Composite parent,final MWindow window){
> 	
> boolean ss = logger == null;
> System.out.println("Logger service "+ ss);
> System.out.println("Log Reader service   " + readerService == null);
> 		
> }
>
>
>
> Output
> -------------
> Logger service false
> false
> _______________________________________________
> e4-dev mailing list
> e4-dev@xxxxxxxxxxx
> https://dev.eclipse.org/mailman/listinfo/e4-dev


Back to the top