#106 JavaStyle reformatting exception

closed-works-for-me
Mike Atkinson
None
3
2003-11-13
2003-05-30
Brad Mace
No

jEdit 4.2pre2

[debug] JavaStylePlugin$JEditPrettyPrinter: formatting
the buffer...
[debug] EditBus:
BufferUpdate[what=DIRTY_CHANGED,view=null,source=Story.java
(I:\plugins\XPTracker\src\main\xptracker\)]
[debug] EditBus:
BufferUpdate[what=MARKERS_CHANGED,view=null,source=Story.java
(I:\plugins\XPTracker\src\main\xptracker\)]
[error] Buffer: Exception while sending buffer event:
[error] Buffer: java.lang.AbstractMethodError
[error] Buffer: at
org.gjt.sp.jedit.Buffer.firePreContentRemoved(Buffer.java:4119)
[error] Buffer: at
org.gjt.sp.jedit.Buffer.remove(Buffer.java:1258)
[error] Buffer: at
javastyle.JavaStylePlugin$JEditPrettyPrinter.run(JavaStylePlugin.java:271)
[error] Buffer: at
org.gjt.sp.util.WorkThreadPool.addWorkRequest(WorkThreadPool.java:109)
[error] Buffer: at
org.gjt.sp.jedit.io.VFSManager.runInAWTThread(VFSManager.java:245)
[error] Buffer: at
javastyle.JavaStylePlugin.beautify(JavaStylePlugin.java:201)
[error] Buffer: at
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

Discussion

  • Brad Mace
    Brad Mace
    2003-06-17

    • assigned_to: nobody --> dmoebius
     
  • Mike Atkinson
    Mike Atkinson
    2003-07-15

    Logged In: YES
    user_id=476481

    Unless you can give the java source file which gave the
    error I will close this bug as there is not enough detail
    here to fix it.

     
  • Brad Mace
    Brad Mace
    2003-07-15

    Logged In: YES
    user_id=370261

    As far as I can tell, it happens with any file, but i've
    attached one for you to try.

     
  • Brad Mace
    Brad Mace
    2003-07-15

    A file that causes the exception when reformatting

     
    Attachments
  • Mike Atkinson
    Mike Atkinson
    2003-07-24

    Logged In: YES
    user_id=476481

    The attached file pretty prints OK for me, looking at the
    trace it could be that the file was locked [but in that case
    a message should be displayed] or you do not have access
    rights to it.

    I think this is not a JavaStyle error, but I will leave it
    open for the time being.

     
  • Mike Atkinson
    Mike Atkinson
    2003-07-24

    • assigned_to: dmoebius --> mikeatkinson
    • status: open --> open-accepted
     
  • Mike Atkinson
    Mike Atkinson
    2003-11-13

    • status: open-accepted --> closed-works-for-me
     
  • Mike Atkinson
    Mike Atkinson
    2003-11-13

    Logged In: YES
    user_id=476481

    Still can't reproduce so closing.