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 271478 - not detecting uncaught exception
Summary: not detecting uncaught exception
Status: NEW
Alias: None
Product: ide
Classification: Unclassified
Component: Code (show other bugs)
Version: 8.2
Hardware: PC Windows 10 x64
: P1 normal (vote)
Assignee: issues@ide
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-09-14 11:39 UTC by FiruzzZ
Modified: 2017-09-14 11:39 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
IDE log (552.12 KB, text/plain)
2017-09-14 11:39 UTC, FiruzzZ
Details

Note You need to log in before you can comment on or make changes to this bug.
Description FiruzzZ 2017-09-14 11:39:38 UTC
The IDE is not indicating where (which line) exceptions must be caught nor showing the hint to "surround by try..catch" or "add throws clause", it just showing in the file's icon the red  exclamation (!) 

I have the following class:
public abstract class UTIL {
  //lots of statics methods

	/**
	* Utilities related to Images
	*/
	public final static class Image {

		public static boolean reduceImageQuality(int sizeThreshold, File fileIn, File fileOut) throws IOException { //removing the throws (one or all them)
			// In the body there are many line that throws different Exceptions, non of it are highlighted 
			...
			FileInputStream inputStream = new FileInputStream(file);//FileNotFound
			...
			ImageIO.read(inputStream); //IOException 

		}
		
	}
}

Product Version = NetBeans IDE 8.2 (Build 201609300101)
Operating System = Windows 10 version 10.0 running on amd64
Java; VM; Vendor = 1.8.0_144
Runtime = Java HotSpot(TM) 64-Bit Server VM 25.144-b01

Reproducibility: Happens every time
Comment 1 FiruzzZ 2017-09-14 11:39:53 UTC
Created attachment 165131 [details]
IDE log