Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Java 11+ #174

Open
sfuerte opened this issue Nov 27, 2020 · 0 comments
Open

Java 11+ #174

sfuerte opened this issue Nov 27, 2020 · 0 comments

Comments

@sfuerte
Copy link

sfuerte commented Nov 27, 2020

any chance it will be released under Java 11 (at least)?
As well as for Apple M1 natively (though Rosetta works for now).

Thanks!

Here is a compilation attempt:

> java --version
openjdk 11.0.9.1 2020-11-04 LTS
OpenJDK Runtime Environment Zulu11.43+1007-CA (build 11.0.9.1+1-LTS)
OpenJDK 64-Bit Server VM Zulu11.43+1007-CA (build 11.0.9.1+1-LTS, mixed mode)

> ant -version
Apache Ant(TM) version 1.10.9 compiled on September 27 2020
trolCommander> ant
Buildfile: .../trolCommander/build.xml

load-properties:
     [echo] Using properties file: build.properties

compile:
     [echo] Compiling sources...
    [javac] .../trolCommander/build.xml:140: warning: 'includeantruntime' was not set, defaulting to build.sysclasspath=last; set to false for repeatable builds
    [javac] Compiling 1334 source files to .../trolCommander/tmp/main
    [javac] .../trolCommander/src/main/com/mucommander/commons/file/impl/vsphere/VSphereClient.java:15: error: package javax.xml.ws does not exist
    [javac] import javax.xml.ws.BindingProvider;
    [javac]                    ^
    [javac] .../trolCommander/src/main/com/mucommander/commons/file/impl/vsphere/VSphereFile.java:21: error: package javax.xml.soap does not exist
    [javac] import javax.xml.soap.Detail;
    [javac]                      ^
    [javac] .../trolCommander/src/main/com/mucommander/commons/file/impl/vsphere/VSphereFile.java:22: error: package javax.xml.ws.soap does not exist
    [javac] import javax.xml.ws.soap.SOAPFaultException;
    [javac]                         ^
    [javac] .../trolCommander/src/main/com/mucommander/commons/file/impl/vsphere/VSphereFile.java:313: error: cannot find symbol
    [javac] 	private boolean isFileNotFound(SOAPFaultException e) {
    [javac] 	                               ^
    [javac]   symbol:   class SOAPFaultException
    [javac]   location: class VSphereFile
    [javac] .../trolCommander/src/main/ru/trolsoft/utils/StrUtils.java:20: error: package javax.xml.bind does not exist
    [javac] import javax.xml.bind.DatatypeConverter;
    [javac]                      ^
    [javac] warning: unknown enum constant XmlAccessType.FIELD
    [javac]   reason: class file for javax.xml.bind.annotation.XmlAccessType not found
    [javac] warning: unknown enum constant XmlAccessType.FIELD
    [javac] warning: unknown enum constant XmlAccessType.FIELD
    [javac] warning: unknown enum constant XmlAccessType.FIELD
    [javac] warning: unknown enum constant XmlAccessType.FIELD
    [javac] warning: unknown enum constant XmlAccessType.FIELD
    [javac] warning: unknown enum constant XmlAccessType.FIELD
    [javac] warning: unknown enum constant XmlAccessType.FIELD
    [javac] warning: unknown enum constant XmlAccessType.FIELD
    [javac] warning: unknown enum constant XmlAccessType.FIELD
    [javac] .../trolCommander/src/main/com/ibm/icu/text/CharsetDetector.java:518: warning: [dep-ann] deprecated item is not annotated with @Deprecated
    [javac]     public String[] getDetectableCharsets() {
    [javac]                     ^
    [javac] .../trolCommander/src/main/com/ibm/icu/text/CharsetDetector.java:545: warning: [dep-ann] deprecated item is not annotated with @Deprecated
    [javac]     public CharsetDetector setDetectableCharset(String encoding, boolean enabled) {
    [javac]                            ^
    [javac] .../trolCommander/src/main/com/mucommander/commons/file/AbstractFile.java:905: warning: [unchecked] unchecked cast
    [javac]                 return (T) ancestor;
    [javac]                            ^
    [javac]   required: T
    [javac]   found:    AbstractFile
    [javac]   where T is a type-variable:
    [javac]     T extends AbstractFile declared in method <T>getAncestor(Class<T>)
    [javac] .../trolCommander/src/main/com/mucommander/ui/action/MuAction.java:250: warning: [deprecation] getKeyModifiersText(int) in KeyEvent has been deprecated
    [javac]             text = KeyEvent.getKeyModifiersText(modifiers) + "+" + text;
    [javac]                            ^
    [javac] .../trolCommander/src/main/com/mucommander/core/LocationChanger.java:594: warning: [deprecation] stop() in Thread has been deprecated
    [javac] 					super.stop();
    [javac] 					     ^
    [javac] .../trolCommander/src/main/com/mucommander/ui/text/FilePathFieldKeyListener.java:50: warning: [deprecation] getModifiers() in InputEvent has been deprecated
    [javac]             if (e.getModifiers() != 0) {
    [javac]                  ^
    [javac] .../trolCommander/src/main/com/mucommander/ui/text/FilePathFieldKeyListener.java:69: warning: [deprecation] getModifiers() in InputEvent has been deprecated
    [javac]             if (e.getModifiers() != 0) {
    [javac]                  ^
    [javac] .../trolCommander/src/main/com/mucommander/ui/icon/AnimatedIcon.java:258: warning: [deprecation] finalize() in Object has been deprecated
    [javac]     protected void finalize() throws Throwable {
    [javac]                    ^
    [javac] .../trolCommander/src/main/com/mucommander/ui/icon/AnimatedIcon.java:262: warning: [deprecation] finalize() in Object has been deprecated
    [javac]         super.finalize();
    [javac]              ^
    [javac] .../trolCommander/src/main/com/mucommander/ui/dialog/FocusDialog.java:167: warning: [deprecation] META_MASK in InputEvent has been deprecated
    [javac]             inputMap.put(KeyStroke.getKeyStroke(KeyEvent.VK_W, InputEvent.META_MASK), CUSTOM_DISPOSE_EVENT);
    [javac]                                                                          ^
    [javac] .../trolCommander/src/main/com/mucommander/ui/autocomplete/AutocompleterTextComponent.java:99: warning: [deprecation] modelToView(JTextComponent,int) in TextUI has been deprecated
    [javac] 	Rectangle modelToView() throws BadLocationException { return textComponent.getUI().modelToView(textComponent, textComponent.getCaretPosition()); }
    [javac] 	                                                                                  ^
    [javac] .../trolCommander/src/main/com/mucommander/ui/dnd/FileDragSourceListener.java:107: warning: [deprecation] getModifiers() in InputEvent has been deprecated
    [javac]         if ((event.getTriggerEvent().getModifiers() & (InputEvent.BUTTON2_MASK|InputEvent.BUTTON3_MASK)) != 0)
    [javac]                                     ^
    [javac] .../trolCommander/src/main/com/mucommander/ui/dnd/FileDragSourceListener.java:107: warning: [deprecation] BUTTON2_MASK in InputEvent has been deprecated
    [javac]         if ((event.getTriggerEvent().getModifiers() & (InputEvent.BUTTON2_MASK|InputEvent.BUTTON3_MASK)) != 0)
    [javac]                                                                  ^
    [javac] .../trolCommander/src/main/com/mucommander/ui/dnd/FileDragSourceListener.java:107: warning: [deprecation] BUTTON3_MASK in InputEvent has been deprecated
    [javac]         if ((event.getTriggerEvent().getModifiers() & (InputEvent.BUTTON2_MASK|InputEvent.BUTTON3_MASK)) != 0)
    [javac]                                                                                          ^
    [javac] .../trolCommander/src/main/com/mucommander/ui/quicklist/QuickList.java:77: warning: [deprecation] show() in Component has been deprecated
    [javac] 	public void show() {
    [javac] 	            ^
    [javac] .../trolCommander/src/main/com/mucommander/ui/main/PreviewPanel.java:87: warning: [deprecation] getModifiers() in InputEvent has been deprecated
    [javac]             boolean isCtrlPressed = (e.getModifiers() & KeyEvent.CTRL_MASK) != 0;
    [javac]                                       ^
    [javac] .../trolCommander/src/main/com/mucommander/ui/main/PreviewPanel.java:87: warning: [deprecation] CTRL_MASK in InputEvent has been deprecated
    [javac]             boolean isCtrlPressed = (e.getModifiers() & KeyEvent.CTRL_MASK) != 0;
    [javac]                                                                 ^
    [javac] .../trolCommander/src/main/com/mucommander/ui/viewer/text/TextArea.java:65: warning: [deprecation] modelToView(int) in JTextComponent has been deprecated
    [javac]             Rectangle temp = modelToView(pos);
    [javac]                              ^
    [javac] .../trolCommander/src/main/com/mucommander/ui/viewer/FilePresenter.java:47: warning: [deprecation] META_MASK in InputEvent has been deprecated
    [javac]         	getInputMap(JComponent.WHEN_IN_FOCUSED_WINDOW).put(KeyStroke.getKeyStroke(KeyEvent.VK_W, InputEvent.META_MASK), CUSTOM_DISPOSE_EVENT);
    [javac]         	                                                                                                   ^
    [javac] .../trolCommander/src/main/com/mucommander/ui/viewer/FileViewer.java:88: warning: [deprecation] getModifiers() in InputEvent has been deprecated
    [javac]             KeyStroke keyStroke = KeyStroke.getKeyStroke(e.getKeyCode(), e.getModifiers(), false);
    [javac]                                                                           ^
    [javac] .../trolCommander/src/main/com/mucommander/ui/viewer/text/TextViewer.java:109: warning: [deprecation] CTRL_MASK in InputEvent has been deprecated
    [javac]         getInputMap(JComponent.WHEN_IN_FOCUSED_WINDOW).put(KeyStroke.getKeyStroke(KeyEvent.VK_M, InputEvent.CTRL_MASK), CUSTOM_FULL_SCREEN_EVENT);
    [javac]                                                                                                            ^
    [javac] .../trolCommander/src/main/com/mucommander/ui/viewer/text/TextEditorImpl.java:102: warning: [deprecation] getModifiers() in InputEvent has been deprecated
    [javac]             if (e.getKeyCode() == KeyEvent.VK_ENTER && e.getModifiers() == KeyEvent.ALT_MASK) {
    [javac]                                                         ^
    [javac] .../trolCommander/src/main/com/mucommander/ui/viewer/text/TextEditorImpl.java:102: warning: [deprecation] ALT_MASK in InputEvent has been deprecated
    [javac]             if (e.getKeyCode() == KeyEvent.VK_ENTER && e.getModifiers() == KeyEvent.ALT_MASK) {
    [javac]                                                                                    ^
    [javac] .../trolCommander/src/main/com/mucommander/ui/viewer/text/TextEditorImpl.java:109: warning: [deprecation] ALT_MASK in InputEvent has been deprecated
    [javac]             int mask = OsFamily.MAC_OS_X.isCurrent() ? KeyEvent.ALT_MASK : KeyEvent.CTRL_MASK;
    [javac]                                                                ^
    [javac] .../trolCommander/src/main/com/mucommander/ui/viewer/text/TextEditorImpl.java:109: warning: [deprecation] CTRL_MASK in InputEvent has been deprecated
    [javac]             int mask = OsFamily.MAC_OS_X.isCurrent() ? KeyEvent.ALT_MASK : KeyEvent.CTRL_MASK;
    [javac]                                                                                    ^
    [javac] .../trolCommander/src/main/com/mucommander/ui/viewer/text/TextEditorImpl.java:110: warning: [deprecation] getModifiers() in InputEvent has been deprecated
    [javac]             if (textArea.isEditable() && e.getKeyChar() == KeyEvent.VK_TAB && e.getModifiers() == mask) {
    [javac]                                                                                ^
    [javac] .../trolCommander/src/main/com/mucommander/ui/viewer/text/TextEditorImpl.java:168: warning: [deprecation] getModifiers() in InputEvent has been deprecated
    [javac]             boolean isCtrlPressed = (e.getModifiers() & KeyEvent.CTRL_MASK) != 0;
    [javac]                                       ^
    [javac] .../trolCommander/src/main/com/mucommander/ui/viewer/text/TextEditorImpl.java:168: warning: [deprecation] CTRL_MASK in InputEvent has been deprecated
    [javac]             boolean isCtrlPressed = (e.getModifiers() & KeyEvent.CTRL_MASK) != 0;
    [javac]                                                                 ^
    [javac] .../trolCommander/src/main/com/mucommander/ui/viewer/text/TextMenuHelper.java:129: warning: [deprecation] ALT_MASK in InputEvent has been deprecated
    [javac]             miReplace = MenuToolkit.addMenuItem(menuSearch, i18n("text_editor.replace_menu"), menuItemMnemonicHelper, getKeyStroke(KeyEvent.VK_F, getCtrlOrMetaMask()|KeyEvent.ALT_MASK), actionListener);
    [javac]                                                                                                                                                                               ^
    [javac] .../trolCommander/src/main/com/mucommander/ui/viewer/text/TextMenuHelper.java:157: warning: [deprecation] ALT_MASK in InputEvent has been deprecated
    [javac]         int mask = OsFamily.MAC_OS_X.isCurrent() ? KeyEvent.ALT_MASK : KeyEvent.CTRL_MASK;
    [javac]                                                            ^
    [javac] .../trolCommander/src/main/com/mucommander/ui/viewer/text/TextMenuHelper.java:157: warning: [deprecation] CTRL_MASK in InputEvent has been deprecated
    [javac]         int mask = OsFamily.MAC_OS_X.isCurrent() ? KeyEvent.ALT_MASK : KeyEvent.CTRL_MASK;
    [javac]                                                                                ^
    [javac] .../trolCommander/src/main/com/mucommander/ui/viewer/text/TextMenuHelper.java:159: warning: [deprecation] CTRL_MASK in InputEvent has been deprecated
    [javac]         miMainFrame = MenuToolkit.addMenuItem(fileMenu, i18n("file_editor.show_file_manager"), mnemonicHelper, getKeyStroke(KeyEvent.VK_1, KeyEvent.CTRL_MASK), actionListener);
    [javac]                                                                                                                                                    ^
    [javac] .../trolCommander/src/main/com/mucommander/ui/viewer/text/TextMenuHelper.java:163: warning: [deprecation] SHIFT_MASK in InputEvent has been deprecated
    [javac]         mask = getCtrlOrMetaMask() | KeyEvent.SHIFT_MASK;
    [javac]                                              ^
    [javac] .../trolCommander/src/main/com/mucommander/ui/viewer/text/TextMenuHelper.java:201: warning: [deprecation] META_MASK in InputEvent has been deprecated
    [javac]     @MagicConstant(flags = {KeyEvent.META_MASK, KeyEvent.CTRL_MASK})
    [javac]                                     ^
    [javac] .../trolCommander/src/main/com/mucommander/ui/viewer/text/TextMenuHelper.java:201: warning: [deprecation] CTRL_MASK in InputEvent has been deprecated
    [javac]     @MagicConstant(flags = {KeyEvent.META_MASK, KeyEvent.CTRL_MASK})
    [javac]                                                         ^
    [javac] .../trolCommander/src/main/com/mucommander/ui/viewer/text/TextMenuHelper.java:203: warning: [deprecation] META_MASK in InputEvent has been deprecated
    [javac]         return OsFamily.MAC_OS_X.isCurrent() ? KeyEvent.META_MASK : KeyEvent.CTRL_MASK;
    [javac]                                                        ^
    [javac] .../trolCommander/src/main/com/mucommander/ui/viewer/text/TextMenuHelper.java:203: warning: [deprecation] CTRL_MASK in InputEvent has been deprecated
    [javac]         return OsFamily.MAC_OS_X.isCurrent() ? KeyEvent.META_MASK : KeyEvent.CTRL_MASK;
    [javac]                                                                             ^
    [javac] .../trolCommander/src/main/com/mucommander/ui/viewer/text/tools/ExecOutputTextPane.java:214: warning: [deprecation] viewToModel(Point) in JTextComponent has been deprecated
    [javac]         int pos = viewToModel(p);
    [javac]                   ^
    [javac] .../trolCommander/src/main/com/mucommander/commons/file/impl/zip/provider/ZipEntry.java:633: warning: [unchecked] unchecked cast
    [javac]             ze.extraFields = (Vector<ZipExtraField>) extraFields.clone();
    [javac]                                                                       ^
    [javac]   required: Vector<ZipExtraField>
    [javac]   found:    Object
    [javac] .../trolCommander/src/main/com/mucommander/commons/file/impl/hadoop/S3File.java:22: warning: [dep-ann] deprecated item is not annotated with @Deprecated
    [javac] public class S3File extends HadoopFile {
    [javac]        ^
    [javac] .../trolCommander/src/main/com/mucommander/commons/file/impl/hadoop/S3ProtocolProvider.java:20: warning: [dep-ann] deprecated item is not annotated with @Deprecated
    [javac] public class S3ProtocolProvider implements ProtocolProvider {
    [javac]        ^
    [javac] .../trolCommander/src/main/com/mucommander/commons/file/impl/vsphere/VSphereClient.java:107: error: cannot access Service
    [javac] 		vimPort = vimService.getVimPort();
    [javac] 		                    ^
    [javac]   class file for javax.xml.ws.Service not found
    [javac] .../trolCommander/src/main/com/mucommander/commons/file/impl/vsphere/VSphereClient.java:110: error: cannot find symbol
    [javac] 		Map<String, Object> requestContext = ((BindingProvider) vimPort)
    [javac] 		                                       ^
    [javac]   symbol:   class BindingProvider
    [javac]   location: class VSphereClient
    [javac] .../trolCommander/src/main/com/mucommander/commons/file/impl/vsphere/VSphereClient.java:115: error: cannot find symbol
    [javac] 		requestContext.put(BindingProvider.ENDPOINT_ADDRESS_PROPERTY,
    [javac] 		                   ^
    [javac]   symbol:   variable BindingProvider
    [javac]   location: class VSphereClient
    [javac] .../trolCommander/src/main/com/mucommander/commons/file/impl/vsphere/VSphereClient.java:117: error: cannot find symbol
    [javac] 		requestContext.put(BindingProvider.SESSION_MAINTAIN_PROPERTY, true);
    [javac] 		                   ^
    [javac]   symbol:   variable BindingProvider
    [javac]   location: class VSphereClient
    [javac] warning: unknown enum constant XmlAccessType.FIELD
    [javac] warning: unknown enum constant XmlAccessType.FIELD
    [javac] warning: unknown enum constant XmlAccessType.FIELD
    [javac] .../trolCommander/src/main/com/mucommander/commons/file/impl/vsphere/VSphereFile.java:289: error: cannot find symbol
    [javac] 		} catch (SOAPFaultException e) {
    [javac] 		         ^
    [javac]   symbol:   class SOAPFaultException
    [javac]   location: class VSphereFile
    [javac] .../trolCommander/src/main/com/mucommander/commons/file/impl/vsphere/VSphereFile.java:314: error: cannot find symbol
    [javac] 		Detail detail = e.getFault().getDetail();
    [javac] 		^
    [javac]   symbol:   class Detail
    [javac]   location: class VSphereFile
    [javac] warning: unknown enum constant XmlAccessType.FIELD
    [javac] warning: unknown enum constant XmlAccessType.FIELD
    [javac] .../trolCommander/src/main/com/mucommander/commons/file/impl/webdav/WebDAVFile.java:98: warning: [deprecation] getResources(String) in Sardine has been deprecated
    [javac]             resources = sardine.getResources(PATH.toString());
    [javac]                                ^
    [javac] .../trolCommander/src/main/com/mucommander/commons/file/impl/webdav/WebDAVFile.java:145: warning: [deprecation] getResources(String) in Sardine has been deprecated
    [javac]             resources = sardine.getResources(PATH.toString());
    [javac]                                ^
    [javac] .../trolCommander/src/main/com/mucommander/commons/file/impl/webdav/WebDAVFile.java:164: warning: [deprecation] getResources(String) in Sardine has been deprecated
    [javac]             files = sardine.getResources(PATH.toString());
    [javac]                            ^
    [javac] .../trolCommander/src/main/com/mucommander/commons/file/impl/zip/provider/ExtraFieldUtils.java:57: warning: [deprecation] newInstance() in Class has been deprecated
    [javac]             ZipExtraField ze = c.newInstance();
    [javac]                                 ^
    [javac]   where T is a type-variable:
    [javac]     T extends Object declared in class Class
    [javac] .../trolCommander/src/main/com/mucommander/commons/file/impl/zip/provider/ExtraFieldUtils.java:80: warning: [deprecation] newInstance() in Class has been deprecated
    [javac]             return c.newInstance();
    [javac]                     ^
    [javac]   where T is a type-variable:
    [javac]     T extends Object declared in class Class
    [javac] .../trolCommander/src/main/com/mucommander/commons/io/BufferedRandomOutputStream.java:214: warning: [deprecation] finalize() in Object has been deprecated
    [javac]     protected void finalize() throws Throwable {
    [javac]                    ^
    [javac] .../trolCommander/src/main/com/mucommander/commons/io/BufferedRandomOutputStream.java:219: warning: [deprecation] finalize() in Object has been deprecated
    [javac]         super.finalize();
    [javac]              ^
    [javac] .../trolCommander/src/main/com/mucommander/commons/io/security/MuProvider.java:39: warning: [deprecation] Provider(String,double,String) in Provider has been deprecated
    [javac]         super("muCommander", 1.0, "muCommander's additional MessageDigest implementations.");
    [javac]         ^
    [javac] .../trolCommander/src/main/com/mucommander/desktop/DefaultDesktopAdapter.java:98: warning: [deprecation] getModifiers() in InputEvent has been deprecated
    [javac]         return (e.getModifiers() & MouseEvent.BUTTON1_MASK) != 0;
    [javac]                  ^
    [javac] .../trolCommander/src/main/com/mucommander/desktop/DefaultDesktopAdapter.java:98: warning: [deprecation] BUTTON1_MASK in InputEvent has been deprecated
    [javac]         return (e.getModifiers() & MouseEvent.BUTTON1_MASK) != 0;
    [javac]                                              ^
    [javac] .../trolCommander/src/main/com/mucommander/desktop/DefaultDesktopAdapter.java:113: warning: [deprecation] getModifiers() in InputEvent has been deprecated
    [javac]         return (e.getModifiers() & MouseEvent.BUTTON3_MASK) !=0;
    [javac]                  ^
    [javac] .../trolCommander/src/main/com/mucommander/desktop/DefaultDesktopAdapter.java:113: warning: [deprecation] BUTTON3_MASK in InputEvent has been deprecated
    [javac]         return (e.getModifiers() & MouseEvent.BUTTON3_MASK) !=0;
    [javac]                                              ^
    [javac] .../trolCommander/src/main/com/mucommander/desktop/DefaultDesktopAdapter.java:128: warning: [deprecation] getModifiers() in InputEvent has been deprecated
    [javac]             e.getModifiers() & MouseEvent.BUTTON2_MASK) != 0;
    [javac]              ^
    [javac] .../trolCommander/src/main/com/mucommander/desktop/DefaultDesktopAdapter.java:128: warning: [deprecation] BUTTON2_MASK in InputEvent has been deprecated
    [javac]             e.getModifiers() & MouseEvent.BUTTON2_MASK) != 0;
    [javac]                                          ^
    [javac] .../trolCommander/src/main/com/mucommander/desktop/DesktopManager.java:170: warning: [unchecked] unchecked conversion
    [javac]         operations = new Hashtable[3];
    [javac]                      ^
    [javac]   required: Map<String,List<DesktopOperation>>[]
    [javac]   found:    Hashtable[]
    [javac] .../trolCommander/src/main/com/mucommander/desktop/osx/OSXDesktopAdapter.java:69: warning: [deprecation] getModifiers() in InputEvent has been deprecated
    [javac]         int modifiers = e.getModifiers();
    [javac]                          ^
    [javac] .../trolCommander/src/main/com/mucommander/desktop/osx/OSXDesktopAdapter.java:70: warning: [deprecation] BUTTON1_MASK in InputEvent has been deprecated
    [javac]         return (modifiers & MouseEvent.BUTTON1_MASK) != 0 && !e.isControlDown();
    [javac]                                       ^
    [javac] .../trolCommander/src/main/com/mucommander/desktop/osx/OSXDesktopAdapter.java:75: warning: [deprecation] getModifiers() in InputEvent has been deprecated
    [javac]         int modifiers = e.getModifiers();
    [javac]                          ^
    [javac] .../trolCommander/src/main/com/mucommander/desktop/osx/OSXDesktopAdapter.java:76: warning: [deprecation] BUTTON3_MASK in InputEvent has been deprecated
    [javac]         return (modifiers & MouseEvent.BUTTON3_MASK) != 0 || ((modifiers & MouseEvent.BUTTON1_MASK) != 0 && e.isControlDown());
    [javac]                                       ^
    [javac] .../trolCommander/src/main/com/mucommander/desktop/osx/OSXDesktopAdapter.java:76: warning: [deprecation] BUTTON1_MASK in InputEvent has been deprecated
    [javac]         return (modifiers & MouseEvent.BUTTON3_MASK) != 0 || ((modifiers & MouseEvent.BUTTON1_MASK) != 0 && e.isControlDown());
    [javac]                                                                                      ^
    [javac] .../trolCommander/src/main/com/mucommander/extension/LookAndFeelFilter.java:85: warning: [deprecation] newInstance() in Class has been deprecated
    [javac]                 try {return ((LookAndFeel)c.newInstance()).isSupportedLookAndFeel();}
    [javac]                                            ^
    [javac]   where T is a type-variable:
    [javac]     T extends Object declared in class Class
    [javac] .../trolCommander/src/main/com/mucommander/ui/main/menu/UserPopupMenu.java:208: warning: [deprecation] getModifiers() in InputEvent has been deprecated
    [javac]         if (e.getKeyCode() == KeyEvent.VK_F4 && e.getModifiers() == 0 && e.getID() == KeyEvent.KEY_PRESSED) {
    [javac]                                                  ^
    [javac] .../trolCommander/src/main/com/mucommander/ui/chooser/ColorPicker.java:200: warning: [deprecation] getModifiers() in InputEvent has been deprecated
    [javac]                 if(button==MouseEvent.BUTTON1 && (mouseEvent.getModifiers()&MouseEvent.MOUSE_CLICKED)!=0) {
    [javac]                                                             ^
    [javac] .../trolCommander/src/main/com/mucommander/ui/chooser/KeyboardShortcutChooser.java:69: warning: [deprecation] SHIFT_MASK in InputEvent has been deprecated
    [javac]         KeyEvent.SHIFT_MASK,
    [javac]                 ^
    [javac] .../trolCommander/src/main/com/mucommander/ui/chooser/KeyboardShortcutChooser.java:70: warning: [deprecation] CTRL_MASK in InputEvent has been deprecated
    [javac]         KeyEvent.CTRL_MASK,
    [javac]                 ^
    [javac] .../trolCommander/src/main/com/mucommander/ui/chooser/KeyboardShortcutChooser.java:71: warning: [deprecation] ALT_MASK in InputEvent has been deprecated
    [javac]         KeyEvent.ALT_MASK,
    [javac]                 ^
    [javac] .../trolCommander/src/main/com/mucommander/ui/chooser/KeyboardShortcutChooser.java:72: warning: [deprecation] META_MASK in InputEvent has been deprecated
    [javac]         KeyEvent.META_MASK
    [javac]                 ^
    [javac] .../trolCommander/src/main/com/mucommander/ui/chooser/KeyboardShortcutChooser.java:118: warning: [deprecation] getKeyModifiersText(int) in KeyEvent has been deprecated
    [javac]             modifierCheckBoxes[i] = new JCheckBox(KeyEvent.getKeyModifiersText(modifier));
    [javac]                                                           ^
    [javac] .../trolCommander/src/main/com/mucommander/ui/chooser/KeyboardShortcutChooser.java:252: warning: [deprecation] getModifiers() in InputEvent has been deprecated
    [javac]         LOGGER.trace("keyModifiers="+keyEvent.getModifiers()+" keyCode="+keyEvent.getKeyCode());
    [javac]                                              ^
    [javac] .../trolCommander/src/main/com/mucommander/ui/list/DynamicList.java:217: warning: [deprecation] SHIFT_MASK in InputEvent has been deprecated
    [javac]         inputMap.put(KeyStroke.getKeyStroke(KeyEvent.VK_UP, KeyEvent.SHIFT_MASK), actionClass);
    [javac]                                                                     ^
    [javac] .../trolCommander/src/main/com/mucommander/ui/list/DynamicList.java:218: warning: [deprecation] META_MASK in InputEvent has been deprecated
    [javac]         inputMap.put(KeyStroke.getKeyStroke(KeyEvent.VK_UP, KeyEvent.META_MASK), actionClass);
    [javac]                                                                     ^
    [javac] .../trolCommander/src/main/com/mucommander/ui/list/DynamicList.java:219: warning: [deprecation] SHIFT_MASK in InputEvent has been deprecated
    [javac]         inputMap.put(KeyStroke.getKeyStroke(KeyEvent.VK_LEFT, KeyEvent.SHIFT_MASK), actionClass);
    [javac]                                                                       ^
    [javac] .../trolCommander/src/main/com/mucommander/ui/list/DynamicList.java:220: warning: [deprecation] META_MASK in InputEvent has been deprecated
    [javac]         inputMap.put(KeyStroke.getKeyStroke(KeyEvent.VK_LEFT, KeyEvent.META_MASK), actionClass);
    [javac]                                                                       ^
    [javac] .../trolCommander/src/main/com/mucommander/ui/list/DynamicList.java:225: warning: [deprecation] SHIFT_MASK in InputEvent has been deprecated
    [javac]         inputMap.put(KeyStroke.getKeyStroke(KeyEvent.VK_DOWN, KeyEvent.SHIFT_MASK), actionClass);
    [javac]                                                                       ^
    [javac] .../trolCommander/src/main/com/mucommander/ui/list/DynamicList.java:226: warning: [deprecation] META_MASK in InputEvent has been deprecated
    [javac]         inputMap.put(KeyStroke.getKeyStroke(KeyEvent.VK_DOWN, KeyEvent.META_MASK), actionClass);
    [javac]                                                                       ^
    [javac] .../trolCommander/src/main/com/mucommander/ui/list/DynamicList.java:227: warning: [deprecation] SHIFT_MASK in InputEvent has been deprecated
    [javac]         inputMap.put(KeyStroke.getKeyStroke(KeyEvent.VK_RIGHT, KeyEvent.SHIFT_MASK), actionClass);
    [javac]                                                                        ^
    [javac] .../trolCommander/src/main/com/mucommander/ui/list/DynamicList.java:228: warning: [deprecation] META_MASK in InputEvent has been deprecated
    [javac]         inputMap.put(KeyStroke.getKeyStroke(KeyEvent.VK_RIGHT, KeyEvent.META_MASK), actionClass);
    [javac]                                                                        ^
    [javac] .../trolCommander/src/main/com/mucommander/utils/MuLogging.java:176: warning: [unchecked] unchecked conversion
    [javac] 		Appender<ILoggingEvent>[] appenders = createAppenders(loggerContext);
    [javac] 		                                                     ^
    [javac]   required: Appender<ILoggingEvent>[]
    [javac]   found:    Appender[]
    [javac] .../trolCommander/src/main/com/mucommander/ui/dialog/pref/general/ShortcutsTable.java:476: warning: [deprecation] getModifiers() in InputEvent has been deprecated
    [javac] 			LOGGER.trace("keyModifiers="+keyEvent.getModifiers()+" keyCode="+keyEvent.getKeyCode());
    [javac] 			                                     ^
    [javac] .../trolCommander/src/main/com/mucommander/ui/dialog/pref/general/ShortcutsTable.java:730: warning: [unchecked] unchecked cast
    [javac] 				Pair<ImageIcon, String> description = (Pair<ImageIcon, String>) value;
    [javac] 				                                                                ^
    [javac]   required: Pair<ImageIcon,String>
    [javac]   found:    Object
    [javac] .../trolCommander/src/main/com/mucommander/ui/quicklist/item/QuickListDataList.java:71: warning: [unchecked] unchecked method invocation: method setCellRenderer in class JList is applied to given types
    [javac] 		setCellRenderer(itemRenderer);
    [javac] 		               ^
    [javac]   required: ListCellRenderer<? super E>
    [javac]   found: QuickListDataList.DataListItemRenderer
    [javac]   where E is a type-variable:
    [javac]     E extends Object declared in class JList
    [javac] .../trolCommander/src/main/com/mucommander/ui/quicklist/item/QuickListDataList.java:71: warning: [unchecked] unchecked conversion
    [javac] 		setCellRenderer(itemRenderer);
    [javac] 		                ^
    [javac]   required: ListCellRenderer<? super E>
    [javac]   found:    QuickListDataList.DataListItemRenderer
    [javac]   where E is a type-variable:
    [javac]     E extends Object declared in class JList
    [javac] .../trolCommander/src/main/com/mucommander/ui/quicklist/item/QuickListDataList.java:121: warning: [unchecked] unchecked cast
    [javac] 					((QuickListWithDataList<T>)(getParent().getParent().getParent())).itemSelected(getSelectedValue());
    [javac] 					                           ^
    [javac]   required: QuickListWithDataList<T>
    [javac]   found:    Container
    [javac]   where T is a type-variable:
    [javac]     T extends Object declared in class QuickListDataList
    [javac] .../trolCommander/src/main/com/mucommander/ui/quicklist/item/QuickListDataList.java:289: warning: [unchecked] unchecked cast
    [javac] 						((QuickListWithDataList<T>)(getParent().getParent().getParent())).itemSelected(getSelectedValue());
    [javac] 						                           ^
    [javac]   required: QuickListWithDataList<T>
    [javac]   found:    Container
    [javac]   where T is a type-variable:
    [javac]     T extends Object declared in class QuickListDataList
    [javac] .../trolCommander/src/main/ru/trolsoft/utils/StrUtils.java:159: error: cannot find symbol
    [javac]         return DatatypeConverter.parseHexBinary(text);
    [javac]                ^
    [javac]   symbol:   variable DatatypeConverter
    [javac]   location: class StrUtils
    [javac] Note: Some input files additionally use or override a deprecated API.
    [javac] Note: Some input files additionally use unchecked or unsafe operations.
    [javac] 12 errors
    [javac] 100 warnings

BUILD FAILED
.../trolCommander/build.xml:140: Compile failed; see the compiler error output for details.

Total time: 3 seconds
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant