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.
Cannot set "Source/Binary format" to 1.7 in Sources category of Project Properties from a Maven project. It prevents using the format function (Alt+Shift F) correctly, especially on diamond parameterized type (e.g. new ArrayList<>()). Note/Context: Java platform is correctly set to a recent JDK 1.7 The Maven pom.xml is correctly set to 1.7 <plugin> <artifactId>maven-compiler-plugin</artifactId> <configuration> <source>1.7</source> <target>1.7</target> <encoding>${project.build.sourceEncoding}</encoding> </configuration> </plugin> I reported it as defect as it works well with standard NetBeans projects. Tested on 6.9 Beta.
Created attachment 98894 [details] proposed patch to add 1.7 to the source levels list in Maven project properties
Changeset: ae10f755e75e Author: Dafe Simonek <dsimonek@netbeans.org> Date: 2010-05-13 16:47 Message: #185376: Allow Java 7 in customizer. Issue #185376 - Maven project does not support JDK 7
Integrated into 'main-golden', will be available in build *201005182201* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main/rev/ User: Log: