Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » Java Development Tools (JDT) » Java source formatter doesn't run(Formatter won't run if a specific block of valid code exists)
Java source formatter doesn't run [message #658842] Thu, 10 March 2011 01:12 Go to next message
André de Jager is currently offline André de JagerFriend
Messages: 1
Registered: March 2011
Junior Member
The following block of code causes the formatter not to run:

linearRingType.getCoordinates().add((lon + 0) + "," + (lat + 0.15) + "," + (value * multiplier) + "   " +
			 (lon + 0) + "," + (lat + 0.15) + "," + (value * multiplier) + "   " +
			 (lon - 0.115) + "," + (lat + 0.115) + "," + (value * multiplier) + "   " +
			 (lon - 0.15) + "," + (lat + 0) + "," + (value * multiplier) + "   " +
			 (lon - 0.115) + "," + (lat - 0.115) + "," + (value * multiplier) + "   " +
			 (lon + 0) + "," + (lat - 0.15) + "," + (value * multiplier) + "   " +
			 (lon + 0.115) + "," + (lat - 0.115) + "," + (value * multiplier) + "   " +
			 (lon + 0.15) + "," + (lat + 0) + "," + (value * multiplier) + "   " +
			 (lon + 0.115) + "," + (lat + 0.115) + "," + (value * multiplier));


The file is valid and compiles. Copying the contents to a new file, cleaning the project, changing the formatter profile or disabling the formatter using the tags has no effect. Commenting out the block of code first works.

Should I open a bug report?
Re: Java source formatter doesn't run [message #658871 is a reply to message #658842] Thu, 10 March 2011 08:14 Go to previous message
Satyam Kandula is currently offline Satyam KandulaFriend
Messages: 444
Registered: July 2009
Senior Member
Yes, please do file a bug.
Previous Topic:Automating Comments after closing bracket
Next Topic:Eclipse refuses to save JSP files in Dynamic Web Project
Goto Forum:
  


Current Time: Fri Apr 26 00:29:03 GMT 2024

Powered by FUDForum. Page generated in 0.03335 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top