FIXED: Parsing of Java files not correct

Report issues, odd behaviors or submit a detailed bug report.
Post Reply
karl.ranseier
Posts: 1
Joined: 28 Jan 2019 11:17

FIXED: Parsing of Java files not correct

Post by karl.ranseier » 28 Jan 2019 11:39

The following Java source code is displayed correctly in the structure panel:

Code: Select all

public class Test extends SomeClass {
   public void doSomething() {
   }
   public int getAnswer() {
   	return 42;
   }
}
See a screenshot here: https://i.imgur.com/uA5RSlY.png

However if the extends keyword is written in a new line, the file is no longer parsed correctly:

Code: Select all

public class Test
	extends SomeClass {
   public void doSomething() {
   }
   public int getAnswer() {
   	return 42;
   }
}
The structure panel does not show the methods any more.

See a screenshot here: https://i.imgur.com/rOV8sIP.png

As you can see the methods are no longer displayed and the module is not displayed either.

This also happens with "implements" on a new line (and if both keywords are used).

User avatar
Rickard Johansson
Site Admin
Posts: 5821
Joined: 19 Jul 2006 14:29

Re: Parsing of Java files not correct

Post by Rickard Johansson » 11 Feb 2019 18:40

I think it's fixed now in the next release (v13.70).

BTW. You can fix it yourself by modifying <AppData>\Roaming\RJ TextEd\Syntax\Java.syx and change the [Fold] section to:

Code: Select all

[Fold]
1_Id=class
1_Begin={
1_End=}
1_EndBefore=
1_Section=
1_NoParentOfId=0
1_NotAlwaysEnded=0
1_ListItem=ceClass
2_Id=
2_Begin={
2_End=}
2_EndBefore=} else
2_Section=
2_NoParentOfId=0
2_NotAlwaysEnded=0
2_ListItem=

Post Reply