aot

FeatureModule fails during an AOT build when static forRoot has arguments

亡梦爱人 提交于 2019-11-27 18:12:16
问题 I am encountering an AOT build issue using Angular@5.1.0. The error is: ERROR in Error during template compile of 'AppModule' Function calls are not supported in decorators but 'FeatureModule' was called. feature.module.ts @NgModule({ imports: [ BrowserModule, RouterModule.forRoot([]) ], declarations: [ ... ], exports: [ ... ] }) export class FeatureModule{ static forRoot(items:any[]): ModuleWithProviders { const routes:Routes = items.map(t=> { return { path: t.name, component: t.component };

Free AOT Java compiler [closed]

扶醉桌前 提交于 2019-11-27 17:48:26
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 6 years ago . Does anyone know some free AOT Java compiler? I have found just one - http://gcc.gnu.org/java/. 回答1: https://www.excelsiorjet.com/ As of now, it fully supports Java SE 8 and the Standard Edition is free (but only supports 32-bit Windows and Linux.) 回答2: GCJ , as you've already noted, is probably your best option