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 245636 - Build fails on j2ee.dd with OOME - fix with javac.fork=true
Summary: Build fails on j2ee.dd with OOME - fix with javac.fork=true
Status: RESOLVED FIXED
Alias: None
Product: javaee
Classification: Unclassified
Component: Code (show other bugs)
Version: 8.0.1
Hardware: PC Linux
: P2 normal (vote)
Assignee: Jaroslav Tulach
URL:
Keywords: API_REVIEW_FAST
Depends on:
Blocks:
 
Reported: 2014-07-14 10:03 UTC by Jaroslav Tulach
Modified: 2014-07-22 02:33 UTC (History)
4 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Patch introducing javac.fork flag (2.50 KB, patch)
2014-07-14 10:03 UTC, Jaroslav Tulach
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Jaroslav Tulach 2014-07-14 10:03:57 UTC
Created attachment 148024 [details]
Patch introducing javac.fork flag

I cannot build NetBeans with:

$ ant clean build

command in root directory. Whenever I try the build fails on j2ee.dd module with out of memory error. My setup:

$ java -version
java version "1.8.0_05"
Java(TM) SE Runtime Environment (build 1.8.0_05-b13)
Java HotSpot(TM) 64-Bit Server VM (build 25.5-b02, mixed mode)
$ ant -version
Java HotSpot(TM) 64-Bit Server VM warning: ignoring option MaxPermSize=512M; support was removed in 8.0
Apache Ant(TM) version 1.9.3 compiled on April 8 2014


If I switch to j2ee.dd after the build fails and compile the module separately, then the build succeeds. This leads me to following suggestion: Let's move the build into separate process. I can confirm that with attached patch, the compilation succeeds.
Comment 1 Jaroslav Tulach 2014-07-14 10:06:43 UTC
As the proposed fix introduces an API change in apisupport.harness I am requesting a review. As I am changing CustomJavac class introduced by Jesse, I am CCing him.
Comment 2 Jaroslav Tulach 2014-07-17 12:36:06 UTC
No objections so far, I'd like to integrate tomorrow, then.
Comment 3 Jaroslav Tulach 2014-07-18 08:07:11 UTC
ergonomics#4176440f9379
Comment 4 Quality Engineering 2014-07-22 02:33:43 UTC
Integrated into 'main-silver', will be available in build *201407220001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/4176440f9379
User: Jaroslav Tulach <jtulach@netbeans.org>
Log: #245636: Support for javac.fork option in project.properties