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 271937

Summary: The file seems to be too large (1 Mb) to safely open.
Product: utilities Reporter: sjibben
Component: Open FileAssignee: Jaroslav Havlin <jhavlin>
Status: NEW ---    
Severity: normal    
Priority: P3    
Version: 8.2   
Hardware: PC   
OS: Windows 10 x64   
Issue Type: DEFECT Exception Reporter:

Description sjibben 2017-12-21 14:49:13 UTC
The warning:

The file seems to be too large (1Mb) to safely open.
Opening the file could cause OutOfMemoryError, which would make the IDE unusable.  Do you really want to open it? (Yes/No buttons)

appears when opening a large .java file.  The Yes/No buttons work fine.

The problem is that Netbeans prompts with this message every time I load Netbeans now.

I press the No button and the dialog goes away (and the file does not load)

I press the Yes button and the file is loaded.  Then I close the file.

In either situation the next time I load NetBeans, it will again prompt me regarding this file that I opened two weeks ago.

I want NetBeans to re-open the files that I had open last session but even though this file is closed, the dialog keeps coming back.