Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8006161

JT_JDK: compact3: tools/javac/profiles/ProfileOptionTest.java

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Priority: P4
    • Resolution: Unresolved
    • Affects Version/s: 8
    • Fix Version/s: tbd_minor
    • Component/s: tools
    • Environment:
    • Subcomponent:
    • Introduced In Version:
      8

      Description

      Test fails on compact3 and JRE. Test probably not applicable to compact3 as it relies it deliberately violates the profile boundary, to test boundary enforcement.

       jtreg/linux/bin/jtreg -agentvm -concurrency:10 -compilejdk:"jdk1.8.0" -jdk:"ejre1.8.0" -dir:ws/langtools/test -w:tmpwork -r:tmprep -vmoption:-Xmx512m -ignore:quiet -verbose:all -a -timeout:2 -javacoptions:"-profile compact3" tools/javac/profiles/ProfileOptionTest.java
      ...
      Expected diag codes: [compiler.err.not.in.profile]
      Error: expected diagnostics not found
      [] TString.java OK
      [] TXMLConstants.java OK
      [] TBindings.java OK
      [] TPolicyFile.java OK
      [] TBeanInfo.java OK
      [] T_RMIServer_Stub.java OK

      java.lang.Exception: 11 errors occurred
      at ProfileOptionTest.run(ProfileOptionTest.java:247)
      at ProfileOptionTest.main(ProfileOptionTest.java:60)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
      at java.lang.reflect.Method.invoke(Unknown Source)
      at com.sun.javatest.regtest.MainAction$SameVMRunnable.run(MainAction.java:706)
      at java.lang.Thread.run(Unknown Source)

      JavaTest Message: Test threw exception: java.lang.Exception
      JavaTest Message: shutting down test


       jtreg/linux/bin/jtreg -agentvm -concurrency:10 -compilejdk:"jdk1.8.0" -jdk:"ejre1.8.0-compact3" -dir:ws/langtools/test -w:tmpwork -r:tmprep -vmoption:-Xmx512m -ignore:quiet -verbose:all -a -timeout:2 -javacoptions:"-profile compact3" tools/javac//profiles/ProfileOptionTest.java

      java.lang.NoClassDefFoundError: java/beans/BeanInfo
      at ProfileOptionTest.initTestClasses(ProfileOptionTest.java:186)
      at ProfileOptionTest.run(ProfileOptionTest.java:230)
      at ProfileOptionTest.main(ProfileOptionTest.java:60)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
      at java.lang.reflect.Method.invoke(Unknown Source)
      at com.sun.javatest.regtest.MainAction$SameVMRunnable.run(MainAction.java:706)
      at java.lang.Thread.run(Unknown Source)
      Caused by: java.lang.ClassNotFoundException: java.beans.BeanInfo
      at java.net.URLClassLoader$1.run(Unknown Source)
      at java.net.URLClassLoader$1.run(Unknown Source)
      at java.security.AccessController.doPrivileged(Native Method)
      at java.net.URLClassLoader.findClass(Unknown Source)
      at java.lang.ClassLoader.loadClass(Unknown Source)
      at java.lang.ClassLoader.loadClass(Unknown Source)
      ... 9 more

      JavaTest Message: Test threw exception: java.lang.NoClassDefFoundError
      JavaTest Message: shutting down test


        Attachments

          Activity

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            strarup Peter Jensen (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated: