Menu

#210 Core: settings format not correctly updated between versions

closed-fixed
Core (71)
1
2002-11-15
2002-11-13
No

Installed: jalopy-1.0.9beta on WindowsNT with German
locales.
Upgraded property file from: jalopy-1.0.7beta via
import/export.

When starting the jalopy preferences
panel I always have problems when I am on the "sorting" panel. No
entries are shown. Maybe this is a similar problem.

I tried
with different files. Always the same result.

Using the ant
task I get the following stack trace.

[beautify] formatting
code of single file
D:\Projekte\rentals\businesslogic\src
\de\ivu\beans\booking\BookingService.java...

[jalopy] Jalopy Java Source Code Formatter 1.0b9
[jalopy]
Format 1 source file
[jalopy]
D:\Projekte\rentals\businesslogic\src\de\ivu\beans\booking\BookingService.java:0:0:
Parse
[jalopy]
D:\Projekte\rentals\businesslogic\src\de\ivu\beans\booking\BookingService.java:0:0:parsing
took 170
[jalopy]
D:\Projekte\rentals\businesslogic\src\de\ivu\beans\booking\BookingService.java:0:0:transform

[jalopy]
D:\Projekte\rentals\businesslogic\src\de\ivu\beans\booking\BookingService.java:0:0:
java.lang.NullPointerException
[jalopy]
java.lang.NullPointerException at
de.hunsicker.jalopy.language.SortTransformation.addSiblings(SortTransformation.java:167)
at
de.hunsicker.jalopy.language.SortTransformation.sortDeclarations(SortTransformation.java:534)
at
de.hunsicker.jalopy.language.SortTransformation.sort(SortTransformation.java:104)
at
de.hunsicker.jalopy.language.SortTransformation.apply(SortTransformation.java:64)
at
de.hunsicker.jalopy.language.JavaRecognizer.transform(JavaRecognizer.java:451)
at
de.hunsicker.jalopy.language.JavaRecognizer.getParseTree(Java
Recognizer.java:173)

[jalopy] at
de.hunsicker.jalopy.Jalopy.parse(Jalopy.java:1249)

[jalopy] at
de.hunsicker.jalopy.Jalopy.format(Jalopy.java:1020)

[jalopy] at
de.hunsicker.jalopy.plugin.ant.AntPlugin$FormatThread.run(AntPlugin.java:1308)

[jalopy] 0 source files formatted

Discussion

  • Marc Gerstmair

    Marc Gerstmair - 2002-11-13

    Coding conventions used

     
  • Marco Hunsicker

    Marco Hunsicker - 2002-11-14

    Logged In: YES
    user_id=44430

    The auto-conversion of the settings format failed. Remove
    the following line from your convention

    <order>Variable|Initializer|Constructor|Method|Interface|Class</order>

    Save and import. Now everything should work.

    BTW, thanks for your detailed report. It was *really*
    helpful and is now part of an FAQ entry.

     
  • Marco Hunsicker

    Marco Hunsicker - 2002-11-14
    • labels: 459898 --> Core
    • assigned_to: nobody --> marcohu
    • summary: NullPointerException when parsing file --> Core: settings format not correctly updated between versions
     
  • Marco Hunsicker

    Marco Hunsicker - 2002-11-15

    Logged In: YES
    user_id=44430

    Fixed with 1.0b10

     
  • Marco Hunsicker

    Marco Hunsicker - 2002-11-15
    • priority: 5 --> 1
    • status: open --> closed-fixed
     

Log in to post a comment.