Community
Participate
Working Groups
the semicolon is not inserted anymore. at least if typing something, like, String s=new String() i expect an automatically inserted ";" after the closing parentheses. before, in 3.0.1 the semicolon used to jump around annoyingly f ex if implementing an anonymous inner class, say, an ActionListener. inserting ";" after "})" the ";" always jumped between brace and parenthesis, but now it's gone completely. in Java->Editor->Typing i checked in "automatically close" everything but "Strings" and in "automatically insert at correct position" everything.
This would be wrong since a '.' might be the right choice too: String s=new String().<method goes here>
nope. String s=new String();<nothing/linebreak goes here> at least after a linebreak after ")" a semicolon should be inserted. btw, i just noticed the semicolon jumping around -- writing a try-catch-construct on _one_ line: try{amethod()}catch(){...} inserting ";" after amethod() the ; jumpes to catch...}_;_. backspace sets it back to another()_;_. as this is repeatable i think, it's on purpose. however, the only effect of "insert semicolon" i observe is that annoyingly jumping but no automatically inserted semicolon after a method-call as f ex doMyStuff(myParm)_;_
new String() .<method here> is valid Java code. Please file separate bug reports for other problems instead of adding them to another bug.
as _i_ opened the bug, _i_ may know what the bug means. _you_ did misunderstand the bugreport and closed it overhasty. of course is new String().... valid java code -- but i presumed anybody paying attention should read the code-example _and_ the message, instead of _only_ the code and react. i wrote explicitely String s=new String(); to make clearly i'm speaking about a _completed_ definition, not a maybe growing line of code. if you think it's a wontfix provide a usable rationale.
Please provide a step by step example of what you really mean. In comment 4 you write: >i wrote explicitely >String s=new String(); However comment 0 reads: >String s=new String() Please do not reopen again until more details are provided.
exactly what i said: you're still misunderstanding (yes, i know, in comment 4 i wrote "did misunderstand") . what kind of information do you want? do the configuration given comment 1 and type the text given in comment 1 -- the problem should be clear. to make it easy: when is a semicolon inserted automatically? what effect does "insert automatically at correct position: [x] semicolons" have?
The preference does not insert the ';' automatically but places it at the right location once you press ';'
well, i think the description could be more informative (a tooltip?). seems to me a pretty useless preference but anyway, somebody may like it. if there's a smart solution possible, ok. else remove the "remind".
.
Get rid of deprecated state.