Extra empty lines in java code
Hello
I am experiencing a strange behaviour of SJSC 2.1 (Windows XP) after insttalling the last performance fix
When manipulating components in a page, the .java file gets corrupted. An extra empty line is including after each line. Code still compiles but obviously the code becomes unreadable. This happens if you add a new component to the page o double-click in a component (to edit the action or valuechange methods
Editing-only (in the java window) works ok.
An additional problem found. International characters are not handled properly anymore by the design editor (or the properties window). Changes to them are translated to question marks in the JSP. Only wokaround is to directly edit the JSP
All this happened just after installing the hotfix.
[793 byte] By [
LuisGlezI] at [2007-11-26 9:54:08]

# 1
I'm experiencing the same problem after the latest update of fixes.
# 2
Same problem here. Three empty lines were added between each instruction in the java code!Ant髇io
# 3
I had the same problem, and pointed out to the Creator, who were able to reproduce it. So, they know about it now.
A very undesirable effect of this problem is that as the Java files grows in size, JSC becomes very slow, and can sometimes hang.
Also, I've noticed that this problem happens only with JSC1 created pages, not with JSC2 pages.
My workaround is the following:
1). Download and install the text editor - TextPad
2. Go to the folder containing the java files with the extra lines, select them all, and open with TextPad.
3). Fix the extra line problem with the following regex:
^[[:space:]]*\n
The above regular expression, will take care of the extra lines.
4). Do a search and replace all for all active documents, and save and close.
But obviously, this is a serious problem, and I urge the Creator team to please fix it at the earliest, so as not to cause further confusion and loss of time and effort!
Regards
Haroon
# 4
I did a clean uninstall/install of creator, but still the misbehaviour occurs!
When I add, drag'n drop or move components in the visual designer the IDE adds many lines between code.
Creator-Team: You must find a quick fix for this, because is destroys my guidelines of coding and rearanging the code is wasting a lot of time!
# 5
After doing a clean install, did you install all of the hotfixes?I was not having huge performance problems before, so I'm thinking about doing a clean install and not installing any of the performance hotfixes to work around this problem.
jsr at 2007-7-7 1:12:18 >

# 6
jsr,
yes i did install the hotfixes again and the problem was still there.
There is another post to this topic:
http://forum.sun.com/jive/thread.jspa?threadID=105962
I'm following the hint, to save all changes before i switch to another view (design, code, jsf). So far I can say, that this helped to avoid the mess.
# 7
Hi Folks,Please take a look at this other Thread which discusses the same issue, which has responses from the Creator Developers http://forum.sun.com/jive/thread.jspa?forumID=123&threadID=105962ThanksK
# 8
I've found that it's relatively reproducible if you copy a control from one form to another. When you switch to the backing bean, a blank line(seems like a hard return) has been added for every line that pre-existed.
# 9
I would suggest something a little bit simpler with TextPad- replace all \n\n by \n/luis
# 10
Weird, my bosses Creator has started having this problem, yet none of the projects I'm working on are doing it. We're running the exact same version with the exact same updates installed.Is there any progress on tracking down what exactly is causing the problem?Dave
# 11
Hi Folks,A bug has been filed for this issue. The cause is known and it will surely be fixed soon.ThanksK
# 12
same problem.....it even erases code....what a piece of rubbish!!...a fix for a fix....RollaTomasi
# 13
Hi RollaTomasi,
We did send out some updates via UpdateCenter just two days back. One of the fixes in there would fix the extra empty lines issue.
Did you get a chance to get these updates downloaded and installed on your Creator Installation? If yes, this should fix your issue.
Could you please confirm this?
Appreciate your feedback & Regards,
Sakthi