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.

Bug 228347 - Maven projects doesn't compile with JDK 1.6
Summary: Maven projects doesn't compile with JDK 1.6
Status: RESOLVED FIXED
Alias: None
Product: projects
Classification: Unclassified
Component: Maven (show other bugs)
Version: 7.4
Hardware: PC Linux
: P1 normal (vote)
Assignee: Milos Kleint
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-04-07 17:25 UTC by janario
Modified: 2013-04-08 11:39 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Log with error of Maven in NetBeans output (8.39 KB, application/octet-stream)
2013-04-07 17:27 UTC, janario
Details

Note You need to log in before you can comment on or make changes to this bug.
Description janario 2013-04-07 17:25:47 UTC
When I try to create a Maven project and compile it with JDK 1.6 it finishes with error of major.minor(51.0)
This doesn't happen if I change to JDK 1.7

Product Version = NetBeans IDE Dev (Build 20130407-92284ad70b21)
Operating System = Linux version 3.5.0-26-generic running on amd64
Java; VM; Vendor = 1.7.0_17
Runtime = Java HotSpot(TM) 64-Bit Server VM 23.7-b01
Comment 1 janario 2013-04-07 17:27:57 UTC
Created attachment 133347 [details]
Log with error of Maven in NetBeans output
Comment 2 Milos Kleint 2013-04-08 08:48:10 UTC
caused by my latest changes, we will need to compile the classes that go into maven's jvm with target java 1.5
Comment 3 Milos Kleint 2013-04-08 11:39:31 UTC
http://hg.netbeans.org/core-main/rev/eda2c312d59d

this should fix it, only tested with 1.6 on mac (not 1.5)