[prev in list] [next in list] [prev in thread] [next in thread] 

List:       jedit-devel
Subject:    [ jEdit-devel ] [ jedit-Patches-3185856 ] Fix for Bug #1229377 -
From:       "SourceForge.net" <noreply () sourceforge ! net>
Date:       2011-08-30 16:42:54
Message-ID: E1QyROp-0000w5-HE () sfs-ml-1 ! v29 ! ch3 ! sourceforge ! com
[Download RAW message or body]

Patches item #3185856, was opened at 2011-02-18 16:11
Message generated for change (Comment added) made by kpouer
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=300588&aid=3185856&group_id=588

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: None
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Evan Wright (evanpw)
Assigned to: Matthieu Casanova (kpouer)
Summary: Fix for Bug #1229377 - copy/paste memory usage

Initial Comment:
This patch adds a cap to the size of a HistoryModel, so that when copying huge \
amounts of text, the clipboard history model does not use up all available heap \
space. It also limits the size of the previews in the PasteFromListDialog, because \
adding 5 megabytes of text to a JTextArea is a _bad_ idea. This should fix bug \
#1229377 - jEdit's oldest open severe bug (from 2005)!.

----------------------------------------------------------------------

> Comment By: Matthieu Casanova (kpouer)
Date: 2011-08-30 18:42

Message:
Hi, I don't see the problem.
It is trying to show a too long String in the TextArea of the dialog ?

Anyway I had this exception
java.lang.ClassCastException:
org.gjt.sp.jedit.buffer.UndoManager$RemovedContent cannot be cast to
java.lang.String
	at
org.gjt.sp.jedit.gui.PasteFromListDialog.getSelectedClipText(PasteFromListDialog.java:156)
  at
org.gjt.sp.jedit.gui.PasteFromListDialog.showClipText(PasteFromListDialog.java:189)
	at
org.gjt.sp.jedit.gui.PasteFromListDialog.access$200(PasteFromListDialog.java:35)
	at
org.gjt.sp.jedit.gui.PasteFromListDialog$ListHandler.valueChanged(PasteFromListDialog.java:295)
  at javax.swing.JList.fireSelectionValueChanged(JList.java:1798)
	at javax.swing.JList$ListSelectionHandler.valueChanged(JList.java:1812)
	at
javax.swing.DefaultListSelectionModel.fireValueChanged(DefaultListSelectionModel.java:184)
  at
javax.swing.DefaultListSelectionModel.fireValueChanged(DefaultListSelectionModel.java:164)
  at
javax.swing.DefaultListSelectionModel.fireValueChanged(DefaultListSelectionModel.java:211)
  at
javax.swing.DefaultListSelectionModel.changeSelection(DefaultListSelectionModel.java:405)
  at
javax.swing.DefaultListSelectionModel.changeSelection(DefaultListSelectionModel.java:415)
  at
javax.swing.DefaultListSelectionModel.setSelectionInterval(DefaultListSelectionModel.java:459)
  at javax.swing.JList.setSelectedIndex(JList.java:2212)
	at
org.gjt.sp.jedit.gui.PasteFromListDialog.<init>(PasteFromListDialog.java:88)
	at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
	at
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
  at
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
  at java.lang.reflect.Constructor.newInstance(Constructor.java:525)
	at org.gjt.sp.jedit.bsh.Reflect.constructObject(Reflect.java:620)
	at
org.gjt.sp.jedit.bsh.BSHAllocationExpression.constructObject(BSHAllocationExpression.java:123)
  at
org.gjt.sp.jedit.bsh.BSHAllocationExpression.objectAllocation(BSHAllocationExpression.java:114)
  at
org.gjt.sp.jedit.bsh.BSHAllocationExpression.eval(BSHAllocationExpression.java:62)
	at
org.gjt.sp.jedit.bsh.BSHPrimaryExpression.eval(BSHPrimaryExpression.java:102)
	at
org.gjt.sp.jedit.bsh.BSHPrimaryExpression.eval(BSHPrimaryExpression.java:47)
	at org.gjt.sp.jedit.bsh.BSHBlock.evalBlock(BSHBlock.java:130)
	at org.gjt.sp.jedit.bsh.BSHBlock.eval(BSHBlock.java:80)
	at org.gjt.sp.jedit.bsh.BshMethod.invokeImpl(BshMethod.java:362)
	at org.gjt.sp.jedit.bsh.BshMethod.invoke(BshMethod.java:258)
	at org.gjt.sp.jedit.bsh.BshMethod.invoke(BshMethod.java:186)
	at
org.gjt.sp.jedit.BeanShellFacade.runCachedBlock(BeanShellFacade.java:225)
	at org.gjt.sp.jedit.BeanShell.runCachedBlock(BeanShell.java:423)
	at org.gjt.sp.jedit.BeanShellAction.invoke(BeanShellAction.java:73)
	at org.gjt.sp.jedit.gui.InputHandler.invokeAction(InputHandler.java:342)
	at org.gjt.sp.jedit.gui.ActionBar$1.run(ActionBar.java:207)
	at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:251)
	at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:705)
	at java.awt.EventQueue.access$000(EventQueue.java:101)
	at java.awt.EventQueue$3.run(EventQueue.java:666)
	at java.awt.EventQueue$3.run(EventQueue.java:664)
	at java.security.AccessController.doPrivileged(Native Method)
	at
java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76)
	at java.awt.EventQueue.dispatchEvent(EventQueue.java:675)
	at
java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:211)
	at
java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:128)
	at
java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:117)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:113)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:105)
	at java.awt.EventDispatchThread.run(EventDispatchThread.java:90)


----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=300588&aid=3185856&group_id=588

------------------------------------------------------------------------------
Special Offer -- Download ArcSight Logger for FREE!
Finally, a world-class log management solution at an even better 
price-free! And you'll get a free "Love Thy Logs" t-shirt when you
download Logger. Secure your free ArcSight Logger TODAY!
http://p.sf.net/sfu/arcsisghtdev2dev
-- 
-----------------------------------------------
jEdit Developers' List
jEdit-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jedit-devel


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic