JBoss Community

Re: does ModuleClassLoader support class array syntax?

created by Enguerrand Dibanda in JBoss AS 7 Development - View the full discussion

Hi,

 

does this actually means that this feature in now "out of the box" and the system property

-Dsun.lang.ClassLoader.allowArraySyntax=true doesnt have to be set anymore?

I'm currently having the following problem while using JBoss 7.1.0.Final:

  • I set the -Dsun.lang.ClassLoader.allowArraySyntax=true propery and can see that it is passed to the JVM at boot

10:12:14,514 INFO  [org.jboss.modules] (main) JBoss Modules version 1.1.1.GA

10:12:14,886 INFO  [org.jboss.msc] (main) JBoss MSC version 1.0.2.GA

10:12:15,028 INFO  [org.jboss.as] (MSC service thread 1-4) JBAS015899: JBoss AS 7.1.0.Final "Thunder" starting

10:12:15,030 DEBUG [org.jboss.as.config] (MSC service thread 1-4) Configured system properties:

...

        sun.jnu.encoding = UTF-8

        sun.lang.ClassLoader.allowArraySyntax = true

        sun.management.compiler = HotSpot 64-Bit Tiered Compilers

...

        user.timezone = Europe/Berlin

10:12:15,049 DEBUG [org.jboss.as.config] (MSC service thread 1-4) VM Arguments: -D[Server:dcs1] -XX:PermSize=256m -XX:MaxPermSize=256m -Xms1536m -Xmx1536m -Xss256k -XX:+UseParallelGC -XX:ParallelGCThreads=16 -XX:+DisableExplicitGC ... -Dsun.lang.ClassLoader.allowArraySyntax=true ... -Dlogging.configuration=file:/usr/local/jboss/domain/configuration/logging.properties

10:12:15,300 INFO  [org.xnio] (MSC service thread 1-1) XNIO Version 3.0.3.GA

10:12:15,316 INFO  [org.xnio.nio] (MSC service thread 1-1) XNIO NIO Implementation Version 3.0.3.GA

10:12:15,325 INFO  [org.jboss.remoting] (MSC service thread 1-1) JBoss Remoting version 3.2.2.GA

10:12:22,995 INFO  [org.jboss.as.logging] (MSC service thread 1-3) JBAS011502: Removing bootstrap log handlers

 

  • I can't however see this system property when I query all system properties over the CLI

[domain@localhost:9999 /] /host=dcs1/core-service=platform-mbean/type=runtime:read-attribute(name=system-properties)

...

        "sun.jnu.encoding" => "UTF-8",

        "sun.management.compiler" => "HotSpot 64-Bit Tiered Compilers",

...

Reply to this message by going to Community

Start a new discussion in JBoss AS 7 Development at Community