This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
Created attachment 131378 [details] An example project. There is no way to specify source level 1.8 for a Java freeform project, as the most recent schema for compilation-unit mandates 1.3, 1.4, 1.5, 1.6 or 1.7. See e.g. the attached project - the Java file in it requires source level 1.8, but specifying the source level in project.xml will cause validation failures during project opening: Error in project.xml: The value '1.8' of element 'source-level' is not valid. Allowing source level 1.8 will probably require a new schema version.
tzezula: you mentioned you want to do this/have it halfway done, reassigning.. if I misunderstood please reassign back
Created attachment 133964 [details] Proposed schema change I would like to propose changing the schema (by introducing a new version of it) so that is allows to specify source level as: 1.3-99 (e.g. 1.8, 1.9, 1.10). This is the patch that shows the diff between /3 and the newly proposed /4 version of the schema.
Created attachment 133966 [details] Full patch including the implementation and full new schema.
Please review, thanks.
Integrated: http://hg.netbeans.org/jet-main/rev/ed2352c2ce4b
Integrated into 'main-golden', will be available in build *201305092300* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-golden/rev/ed2352c2ce4b User: Jan Lahoda <jlahoda@netbeans.org> Log: #226105: a new version of the Java Freeform schema, to allow source level >= 1.8
*** Bug 233227 has been marked as a duplicate of this bug. ***
Integrated into 'main-silver', will be available in build *201311230002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-silver/rev/4f2f7a42b1bd User: Milos Kleint <mkleint@netbeans.org> Log: #226105 once negotiated what namespace is necessary and what is used, always consistently use the existing namespace when creating elements
Reopening since the bug is back in NetBeans 8. See also https://netbeans.org/bugzilla/show_bug.cgi?id=243330
After reading the comments about schema version /4 I realized that this is fixed and I just have to change the schema version in my project.xml files.
Right you need to update the schema. The old schema cannot be changed as it would be incompatible change, so any such a change requires a new schema with higher version.