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 227629 - Creating Java EE 7 projects with Java SE 6 target platform should not be allowed
Summary: Creating Java EE 7 projects with Java SE 6 target platform should not be allowed
Status: RESOLVED WONTFIX
Alias: None
Product: javaee
Classification: Unclassified
Component: Web Project (show other bugs)
Version: 7.3.1
Hardware: All All
: P3 normal (vote)
Assignee: David Konecny
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-03-18 14:53 UTC by Petr Jiricka
Modified: 2016-07-07 08:54 UTC (History)
2 users (show)

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Petr Jiricka 2013-03-18 14:53:18 UTC
As Java EE 7 requires Java SE 7 at a minimum, it should not be possible to create a Java EE 7 project with a target platform lower than SE 7.

Right now this is possible, but does not seem to cause any problems until you try to run the app on GlassFish 4 (which does not start on SE 6) - this is tracked separately as bug 227350.

This issue applies to both Ant and Maven EE projects.
Comment 1 David Konecny 2013-03-18 18:26:15 UTC
Last time I looked into this (>month ago) the EE7 spec did not clearly said J2SE7 is required as minimum and that's why I intentionally did not enforce it.
Comment 2 Martin Fousek 2013-03-19 08:08:38 UTC
(In reply to comment #1)
> Last time I looked into this (>month ago) the EE7 spec did not clearly said
> J2SE7 is required as minimum and that's why I intentionally did not enforce it.

Totally agree with David to not enforce source level to version 7. Especially now when we found out that most of EE components (JSF, EL, mostly JMS) are J2SE6 compatible. You can still easily setup JDK7 only for your GF and deploy EE application with J2SE6 sources there.

By the way it looks to me like the same concept as in cases of JEE6. Maybe we could add warnings that the source level 7 is recommended for the EE7 platform.
Comment 3 Petr Jiricka 2013-03-19 09:36:05 UTC
Ok, for now I am changing to enhancement. If we find out there is a real bug for the user, let's change it back to defect.
Comment 4 Martin Balin 2016-07-07 08:54:09 UTC
This old bug may not be relevant anymore. If you can still reproduce it in 8.2 development builds please reopen this issue.

Thanks for your cooperation,
NetBeans IDE 8.2 Release Boss