--- old/src/java.desktop/macosx/classes/sun/lwawt/macosx/CInputMethod.java 2018-10-01 09:57:15.350026000 +0700 +++ new/src/java.desktop/macosx/classes/sun/lwawt/macosx/CInputMethod.java 2018-10-01 09:57:14.882026000 +0700 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2011, 2018, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it @@ -55,7 +55,7 @@ // Intitalize highlight mapping table and its mapper. static { @SuppressWarnings({"rawtypes", "unchecked"}) - Map styles[] = new Map[4]; + Map[] styles = new Map[4]; HashMap map; // UNSELECTED_RAW_TEXT_HIGHLIGHT @@ -613,7 +613,7 @@ } // Get the characters from the iterator - char selectedText[] = new char[theIterator.getEndIndex() - theIterator.getBeginIndex()]; + char[] selectedText = new char[theIterator.getEndIndex() - theIterator.getBeginIndex()]; char current = theIterator.first(); int index = 0; while (current != CharacterIterator.DONE) {