Changeset 2260 for trunk/java-utils


Ignore:
Timestamp:
08/01/19 12:11:21 (5 years ago)
Author:
pharms
Message:

Update to java 11

Location:
trunk/java-utils
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/java-utils/.classpath

    r2182 r2260  
    1818                </attributes> 
    1919        </classpathentry> 
    20         <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.8"> 
    21                 <attributes> 
    22                         <attribute name="maven.pomderived" value="true"/> 
    23                 </attributes> 
    24         </classpathentry> 
     20        <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/> 
    2521        <classpathentry kind="con" path="org.eclipse.m2e.MAVEN2_CLASSPATH_CONTAINER"> 
    2622                <attributes> 
  • trunk/java-utils/.settings/org.eclipse.jdt.core.prefs

    r2182 r2260  
    11eclipse.preferences.version=1 
    22org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled 
    3 org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.8 
     3org.eclipse.jdt.core.compiler.codegen.methodParameters=do not generate 
     4org.eclipse.jdt.core.compiler.codegen.targetPlatform=9 
    45org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve 
    5 org.eclipse.jdt.core.compiler.compliance=1.8 
     6org.eclipse.jdt.core.compiler.compliance=9 
    67org.eclipse.jdt.core.compiler.debug.lineNumber=generate 
    78org.eclipse.jdt.core.compiler.debug.localVariable=generate 
     
    1011org.eclipse.jdt.core.compiler.problem.enumIdentifier=error 
    1112org.eclipse.jdt.core.compiler.problem.forbiddenReference=warning 
    12 org.eclipse.jdt.core.compiler.source=1.8 
     13org.eclipse.jdt.core.compiler.source=9 
  • trunk/java-utils/pom.xml

    r2202 r2260  
    4141            <plugin> 
    4242                <artifactId>maven-compiler-plugin</artifactId> 
    43                 <version>2.3.2</version> 
     43                <version>3.8.0</version> 
    4444                <configuration> 
    45                     <source>1.8</source> 
    46                     <target>1.8</target> 
     45                    <release>11</release> 
    4746                </configuration> 
    4847            </plugin> 
  • trunk/java-utils/src/main/java/de/ugoe/cs/util/console/CommandExecuter.java

    r2233 r2260  
    2020import java.io.FilenameFilter; 
    2121import java.io.IOException; 
     22import java.lang.reflect.InvocationTargetException; 
    2223import java.net.URL; 
    2324import java.util.ArrayList; 
     
    189190        try { 
    190191            Class<?> cmdClass = Class.forName(className); 
    191             cmd = (Command) cmdClass.newInstance(); 
     192            cmd = (Command) cmdClass.getDeclaredConstructor().newInstance(); 
    192193        } 
    193194        catch (NoClassDefFoundError e) { 
     
    199200        catch (IllegalAccessException e) {} 
    200201        catch (InstantiationException e) {} 
     202        catch (InvocationTargetException e) {} 
     203        catch (NoSuchMethodException e) {} 
    201204        catch (ClassCastException e) { 
    202205            Console.traceln(Level.WARNING, className + "found, but does not implement Command"); 
Note: See TracChangeset for help on using the changeset viewer.