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.
DataEditorSupport throws "The file is too big. " exception using logic: public InputStream inputStream() throws IOException { final FileObject fo = getFileImpl (); if (!warnedFiles.contains(fo) && fo.getSize () > 1024 * 1024) { throw new ME (fo.getSize ()); } InputStream is = getFileImpl ().getInputStream (); return is; } in native space 1Mb file is rather common situation. Our users are confused that IDE is going to crash with OOM, because by default Studio uses 1G memory heap. We need a way to replace hardcoded "1024 * 1024" constant. Branding constant would be great. -J-D flag is OK as well
I am OK, with -J-D switch as well. Please go through API review, if you want it.
Created attachment 123941 [details] simple -J-D based patch Have a look at proposed change
Do we really need API review process for such change? Do we have somewhere in API notification about exact 1Mb threshold?
Y01 missing change into openide.loaders/arch.xml to document new property. Y02 missing test.
Jarda, why change of hardcoded value into System property is the API change?
Because some other module, or some end user need to know the name of the property and meaning of its values. The traditional NetBeans definition of an API is: "everything someone else can depend on". Certainly those who set the property depend on its behavior and as such it is an API and should be documented. We are using arch.xml to document such APIs and to specify their stability.
Igor, please, follow up with API change process
Created attachment 139139 [details] Fix, test and apichanges
New patch attached with test and apichanges. Please, take a look.
Looks OK. Please continue with http://wiki.netbeans.org/APIReviewSteps#Step_2_-_Submit_the_Issue
Please, review. We'd like to integrate before Code Freeze
Have to push the changes earlier to be sure that they will be propagated before code freeze. Here they are: http://hg.netbeans.org/cnd-main/rev/bd53f8d50da7