Share

Jalopy Java Source Code Formatter

Tracker: Bugs

1 Core: settings format not correctly updated between versions - ID: 637864
Last Update: Settings changed ( marcohu )

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.j
ava:0:0:
Parse
[jalopy]
D:\Projekte\rentals\businesslogic\src\de\ivu\beans\booking\BookingService.j
ava:0:0:parsing
took 170
[jalopy]
D:\Projekte\rentals\businesslogic\src\de\ivu\beans\booking\BookingService.j
ava:0:0:transform

[jalopy]
D:\Projekte\rentals\businesslogic\src\de\ivu\beans\booking\BookingService.j
ava:0:0:
java.lang.NullPointerException
[jalopy]
java.lang.NullPointerException at
de.hunsicker.jalopy.language.SortTransformation.addSiblings(SortTransformat
ion.java:167)
at
de.hunsicker.jalopy.language.SortTransformation.sortDeclarations(SortTransf
ormation.java:534)
at
de.hunsicker.jalopy.language.SortTransformation.sort(SortTransformation.jav
a:104)
at
de.hunsicker.jalopy.language.SortTransformation.apply(SortTransformation.ja
va:64)
at
de.hunsicker.jalopy.language.JavaRecognizer.transform(JavaRecognizer.java:4
51)
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:13
08)

[jalopy] 0 source files formatted


Marc Gerstmair ( marger ) - 2002-11-13 17:07

1

Closed

Fixed

Marco Hunsicker

Core

None

Public


Comments ( 2 )

Date: 2002-11-15 16:02
Sender: marcohuProject Admin

Logged In: YES
user_id=44430

Fixed with 1.0b10


Date: 2002-11-14 16:03
Sender: marcohuProject Admin

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.


Attached File ( 1 )

Filename Description Download
RFCodingConventions.xml Coding conventions used Download

Changes ( 8 )

Field Old Value Date By
close_date - 2002-11-15 16:02 marcohu
status_id Open 2002-11-15 16:02 marcohu
resolution_id None 2002-11-15 16:02 marcohu
priority 5 2002-11-15 16:02 marcohu
category_id Parser Java 2002-11-14 16:03 marcohu
assigned_to nobody 2002-11-14 16:03 marcohu
summary NullPointerException when parsing file 2002-11-14 16:03 marcohu
File Added 35303: RFCodingConventions.xml 2002-11-13 17:07 marger