There are no limits to the size of Java program files other than implicit
limits imposed by available memory, maximum heap size, etc. Some files in
the DrJava code base are over 10,000 lines long including methods over 1000
lines long (i am embarrassed to admit). Some restrictions in the Java
language can force class constructors to be enormous (all final variables
must be initialized either in initializers or explicitly in the
constructor). For example, the class MainFrame.java in the DrJava code
base has 10,730 lines. I encourage students to split programs into many
small files but nothing in DrJava is intended to restrict file size. I am
using a later build than the latest stable release but you can get this
build at www.cs.rice.edu/~javaplt/drjavarice using the link October 8, 2015
http://www.cs.rice.edu/%7Ejavaplt/drjavarice/drjava.jar.

I don't recall ever encountering​ a size limit and I always use DrJava to
browse and edit the DrJava code base. The file MainFrame.java is one of
the most frequently changed in the code base. If you select all of the
lines in 10,000 line file and hit <TAB> to indent it, it takes several
seconds to complete the operation. Before we added a memoizing cache to
the indent method, it took far longer than that because DrJava uses exactly
the same algorithm to indent each line of the file that it does to indent
an individual line (typically the next line of text to be entered).

Try the latest build and let me know if you still encounter this problem.

Best,

Corky Cartwright

On Fri, Oct 9, 2015 at 3:48 PM, Richard Perrine soccerrprp@users.sf.net
wrote:


Status: open
Group: v1.0 (example)
Created: Fri Oct 09, 2015 08:48 PM UTC by Richard Perrine
Last Updated: Fri Oct 09, 2015 08:48 PM UTC
Owner: nobody

Hi. Some of my students have been working on a huge programming project.
They hit the 6000+ lines of code limit and the IDE is not allowing any more
lines of code. Is this a bug, intentional? And is there is a way to ignore,
deactivate or increase the limit size?

THANK YOU!

Java 8 SDK, latest version of Jar-20140826-r5761

Sent from sourceforge.net because you indicated interest in
https://sourceforge.net/p/drjava/support-requests/322/

To unsubscribe from further messages, please visit
https://sourceforge.net/auth/subscriptions/

 

Related

Support Requests: #322