Community
Participate
Working Groups
Copy the content of some module-info.java from somewhere, paste it into the package explorer. => Instead of creating a module-info.java file it creates a Snippet.java class, inside of which the module syntax creates nothing but syntax errors :)
Putting this on our medium-term radar...
Ran into this a few times and already missing this, esp. during bug verification. Can somebody guide me how to tackle this? I can take a stab at it.
(In reply to Jay Arthanareeswaran from comment #2) > Ran into this a few times and already missing this, esp. during bug > verification. > > Can somebody guide me how to tackle this? I can take a stab at it. See org.eclipse.jdt.internal.ui.refactoring.reorg.PasteAction. Fix should probably go in #parseCus method.
New Gerrit change created: https://git.eclipse.org/r/115378
Gerrit change https://git.eclipse.org/r/115378 was merged to [master]. Commit: http://git.eclipse.org/c/jdt/eclipse.jdt.ui.git/commit/?id=d1a13bdf5e2266e22b7bd041967442287de5dd6e
New Gerrit change created: https://git.eclipse.org/r/115426
Gerrit change https://git.eclipse.org/r/115426 was merged to [R4_7_maintenance]. Commit: http://git.eclipse.org/c/jdt/eclipse.jdt.ui.git/commit/?id=7794f531e53d5560f2b6e6a528dcfd4135e306b9
Released the fix to master and R4_7.
ASTParser resets to defaults after each use so this fix doesn't work when no project is selected in Package Explorer. Released the fix for that in master and R4_7: http://git.eclipse.org/c/jdt/eclipse.jdt.ui.git/commit/?id=182c5aac719cd51403ddd060e55cc7fc949f6e25 http://git.eclipse.org/c/jdt/eclipse.jdt.ui.git/commit/?h=R4_7_maintenance&id=2a528615dacb4f9b7cb7c2ae03fa11bd837b16f8
(In reply to Stephan Herrmann from comment #0) > Copy the content of some module-info.java from somewhere, paste it into the > package explorer. > > => Instead of creating a module-info.java file it creates a Snippet.java > class, inside of which the module syntax creates nothing but syntax errors :) follow up bug of 530096 raised for "invalid" module info texts
Verified as fixed in I20180122-2000 for 4.8 M5.
Verified for 4.7.3 in M20180207-1700.