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

Error while writing Test: Test.class

XMLWordPrintable

    • x86_64
    • linux

      ADDITIONAL SYSTEM INFORMATION :
      1. OS: Debian 10

      2. Java (jdk and jre):

      * Type: OpenJDK
      * version: 16.0.2

      A DESCRIPTION OF THE PROBLEM :
      I had created a simple class with the code as typed in the "steps to reproduce" field and while compilation, I recieve an error as described in the "Actual result" field

      REGRESSION : Last worked in version 14

      STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
      Try to compile the source given in the "Source code" field

      EXPECTED VERSUS ACTUAL BEHAVIOR :
      EXPECTED -
      Sucessfull compilation
      ACTUAL -
      Test.java:3: error: error while writing Test: Test.class
      class Test {
      ^
      1 error

      ---------- BEGIN SOURCE ----------
      import java.io.*;

      class Test {
      public static void main (String[] args) throws Exception {
      System.out.println("Test");
      }

      }
      ---------- END SOURCE ----------

      FREQUENCY : always


            adev Anupam Dev
            webbuggrp Webbug Group
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: