Compiler error with Java 7 for framework generics

2012-01-03 Thread david koch
Hello, I try to use the Bundle.adapt method with Java 1.7.0_02 in the following way: Framework framework; FrameworkStartLevel startLevelObject = framework.adapt(FrameworkStartLevel.class); This is ok for the Eclipse compiler (1.7) but when I try this with gradle or with plain javac on

Re: Compiler error with Java 7 for framework generics

2012-01-03 Thread Holger Hoffstätte
On 03.01.2012 09:42, david koch wrote: Hello, I try to use the Bundle.adapt method with Java 1.7.0_02 in the following way: Framework framework; FrameworkStartLevel startLevelObject = framework.adapt(FrameworkStartLevel.class); This is ok for the Eclipse compiler (1.7) but when I