<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://jogamp.org/bugzilla/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.2"
          urlbase="https://jogamp.org/bugzilla/"
          
          maintainer="sgothel@jausoft.com"
>

    <bug>
          <bug_id>123</bug_id>
          
          <creation_ts>2004-12-05 05:32:36 +0100</creation_ts>
          <short_desc>Use of &quot;enum&quot; as variable name should be eliminated in</short_desc>
          <delta_ts>2010-03-24 07:47:10 +0100</delta_ts>
          <reporter_accessible>0</reporter_accessible>
          <cclist_accessible>0</cclist_accessible>
          <classification_id>3</classification_id>
          <classification>JogAmp</classification>
          <product>Jogl</product>
          <component>core</component>
          <version>1</version>
          <rep_platform>All</rep_platform>
          <op_sys>windows</op_sys>
          <bug_status>VERIFIED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P3</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Sven Gothel">sgothel</reporter>
          <assigned_to name="Sven Gothel">sgothel</assigned_to>
          
          
          <cf_type>DEFECT</cf_type>
          <cf_scm_refs></cf_scm_refs>
          <cf_workaround>---</cf_workaround>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>139</commentid>
    <comment_count>0</comment_count>
    <who name="Sven Gothel">sgothel</who>
    <bug_when>2010-03-24 07:47:10 +0100</bug_when>
    <thetext>


---- Reported by yvg 2004-12-05 05:32:36 ----

When building under JDK 1.5, javac compiler issues some warnings related to the 
use of &quot;enum&quot; as variable name. It should be changed to something else for 
eliminating this warinig and for better future compatibility:

Here is output from javac:

    [javac] Compiling 70 source files to D:\CVS\jogl\build\classes
    [javac] 
D:\CVS\jogl\src\net\java\games\gluegen\JavaMethodBindingEmitter.java:234: 
warning: as of release 1.5, &apos;enum&apos; is a keyword, and may not be used as an 
identifier
    [javac] (try -source 1.5 to use &apos;enum&apos; as a keyword)
    [javac]           EnumType enum = (EnumType)type;
    [javac]                    ^
    [javac] 
D:\CVS\jogl\src\net\java\games\gluegen\JavaMethodBindingEmitter.java:241: 
warning: as of release 1.5, &apos;enum&apos; is a keyword, and may not be used as an 
identifier
    [javac] (try -source 1.5 to use &apos;enum&apos; as a keyword)
    [javac]           for (int j = 0; j &lt; enum.getNumEnumerates(); ++j) {
    [javac]                               ^
    [javac] 
D:\CVS\jogl\src\net\java\games\gluegen\JavaMethodBindingEmitter.java:243: 
warning: as of release 1.5, &apos;enum&apos; is a keyword, and may not be used as an 
identifier
    [javac] (try -source 1.5 to use &apos;enum&apos; as a keyword)
    [javac]             writer.print(enum.getEnumName(j));
    [javac]                          ^
    [javac] Note: * uses or overrides a deprecated API.
    [javac] Note: Recompile with -Xlint:deprecation for details.
    [javac] 3 warnings

     [echo] GlueGen has been built successfully.

Yuri



---- Additional Comments From kbr 2004-12-06 18:10:38 ----

This has been fixed in the CVS repository and will show up in the next beta
(probably 1.1 beta 08).




--- Bug imported by sgothel@jausoft.com 2010-03-24 07:47 EDT  ---

This bug was previously known as _bug_ 123 at https://jogl.dev.java.net/bugs/show_bug.cgi?id=123
</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>