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

Use #pragma once

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Fix
    • Icon: P4 P4
    • 13
    • 13
    • hotspot

      Instead of

      -#ifndef SHARE_VM_OOPS_KLASS_HPP
      -#define SHARE_VM_OOPS_KLASS_HPP
      +#pragma once
      ...
      -#endif // SHARE_VM_OOPS_KLASS_HPP

      Since the repository consolidation, the #define names reflect the old directory structure and are wrong. Rather than fix these and continue with this error-prone method, use #pragma once, which all modern compilers support.

            coleenp Coleen Phillimore
            coleenp Coleen Phillimore
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: