[jira] [Updated] (AVRO-2385) Uppercase fields do not generate proper getter/setters in Java

2019-05-03 Thread Sean Busbey (JIRA)


 [ 
https://issues.apache.org/jira/browse/AVRO-2385?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Sean Busbey updated AVRO-2385:
--
Description: 
Steps to reproduce:

Create an Avro schema with an uppercase field:
{code}
{
  "type": "record",
  "name": "example",
  "namespace": "issue",
  "fields": [
{
  "name": "THERE_IS_NO_INDICATION_OF_WORDS",
  "type": "string"
    }
  ]
}
{code}

Use the avro-maven-plugin to generate Java code for this schema.

{code}

  org.apache.avro
  avro-maven-plugin
  1.8.2
  

  generate-sources
  
schema
  
  
${project.basedir}/src/main/resources
  

  

{code}

Expected result:

The generate getters and setters use camel casing ThereIsNoIndicationOfWords.

Actual result:

The generated getters and setters are in all uppercase:

{code}
/**
 * Gets the value of the 'THERE_IS_NO_INDICATION_OF_WORDS' field.
 * @return The value of the 'THERE_IS_NO_INDICATION_OF_WORDS' field.
 */
public java.lang.CharSequence getTHEREISNOINDICATIONOFWORDS() {
  return THERE_IS_NO_INDICATION_OF_WORDS;
}

/**
 * Sets the value of the 'THERE_IS_NO_INDICATION_OF_WORDS' field.
 * @param value the value to set.
 */
public void setTHEREISNOINDICATIONOFWORDS(java.lang.CharSequence value) {
  this.THERE_IS_NO_INDICATION_OF_WORDS = value;
}
{code}
 

  was:
Steps to reproduce:

Create an Avro schema with an uppercase field:
{code}
{
  "type": "record",
  "name": "example",
  "namespace": "issue",
  "fields": [
{
  "name": "THERE_IS_NO_INDICATION_OF_WORDS",
  "type": "string"
    }
  ]
}
{code}

Use the avro-maven-plugin to generate Java code for this schema.

Expected result:

The generate getters and setters use camel casing ThereIsNoIndicationOfWords.

Actual result:

The generated getters and setters are in all uppercase:

{code}
/**
 * Gets the value of the 'THERE_IS_NO_INDICATION_OF_WORDS' field.
 * @return The value of the 'THERE_IS_NO_INDICATION_OF_WORDS' field.
 */
public java.lang.CharSequence getTHEREISNOINDICATIONOFWORDS() {
  return THERE_IS_NO_INDICATION_OF_WORDS;
}

/**
 * Sets the value of the 'THERE_IS_NO_INDICATION_OF_WORDS' field.
 * @param value the value to set.
 */
public void setTHEREISNOINDICATIONOFWORDS(java.lang.CharSequence value) {
  this.THERE_IS_NO_INDICATION_OF_WORDS = value;
}
{code}
 


> Uppercase fields do not generate proper getter/setters in Java
> --
>
> Key: AVRO-2385
> URL: https://issues.apache.org/jira/browse/AVRO-2385
> Project: Apache Avro
>  Issue Type: Bug
>  Components: java
>Affects Versions: 1.8.2
> Environment: Using Maven plugin with Java 8
>Reporter: Andrew
>Priority: Major
>
> Steps to reproduce:
> Create an Avro schema with an uppercase field:
> {code}
> {
>   "type": "record",
>   "name": "example",
>   "namespace": "issue",
>   "fields": [
> {
>   "name": "THERE_IS_NO_INDICATION_OF_WORDS",
>   "type": "string"
>     }
>   ]
> }
> {code}
> Use the avro-maven-plugin to generate Java code for this schema.
> {code}
> 
>   org.apache.avro
>   avro-maven-plugin
>   1.8.2
>   
> 
>   generate-sources
>   
> schema
>   
>   
> 
> ${project.basedir}/src/main/resources
>   
> 
>   
> 
> {code}
> Expected result:
> The generate getters and setters use camel casing ThereIsNoIndicationOfWords.
> Actual result:
> The generated getters and setters are in all uppercase:
> {code}
> /**
>  * Gets the value of the 'THERE_IS_NO_INDICATION_OF_WORDS' field.
>  * @return The value of the 'THERE_IS_NO_INDICATION_OF_WORDS' field.
>  */
> public java.lang.CharSequence getTHEREISNOINDICATIONOFWORDS() {
>   return THERE_IS_NO_INDICATION_OF_WORDS;
> }
> /**
>  * Sets the value of the 'THERE_IS_NO_INDICATION_OF_WORDS' field.
>  * @param value the value to set.
>  */
> public void setTHEREISNOINDICATIONOFWORDS(java.lang.CharSequence value) {
>   this.THERE_IS_NO_INDICATION_OF_WORDS = value;
> }
> {code}
>  



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)


[jira] [Updated] (AVRO-2385) Uppercase fields do not generate proper getter/setters in Java

2019-05-03 Thread Sean Busbey (JIRA)


 [ 
https://issues.apache.org/jira/browse/AVRO-2385?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Sean Busbey updated AVRO-2385:
--
Description: 
Steps to reproduce:

Create an Avro schema with an uppercase field:
{code}
{
  "type": "record",
  "name": "example",
  "namespace": "issue",
  "fields": [
{
  "name": "THERE_IS_NO_INDICATION_OF_WORDS",
  "type": "string"
    }
  ]
}
{code}

Use the avro-maven-plugin to generate Java code for this schema.

Expected result:

The generate getters and setters use camel casing ThereIsNoIndicationOfWords.

Actual result:

The generated getters and setters are in all uppercase:

{code}
/**
 * Gets the value of the 'THERE_IS_NO_INDICATION_OF_WORDS' field.
 * @return The value of the 'THERE_IS_NO_INDICATION_OF_WORDS' field.
 */
public java.lang.CharSequence getTHEREISNOINDICATIONOFWORDS() {
  return THERE_IS_NO_INDICATION_OF_WORDS;
}

/**
 * Sets the value of the 'THERE_IS_NO_INDICATION_OF_WORDS' field.
 * @param value the value to set.
 */
public void setTHEREISNOINDICATIONOFWORDS(java.lang.CharSequence value) {
  this.THERE_IS_NO_INDICATION_OF_WORDS = value;
}
{code}
 

  was:
Steps to reproduce:

Create an Avro schema with an uppercase field:

{
 {{  "type": "record",}}
 {{  "name": "example",}}
 {{  "namespace": "issue",}}
 {{  "fields": [}}
 {{    {}}
 {{      "name": "THERE_IS_NO_INDICATION_OF_WORDS",}}
 {{      "type": "string"}}
         }
 {{  ]}}
 {{}}}

Use the avro-maven-plugin to generate Java code for this schema.

Expected result:

The generate getters and setters use camel casing ThereIsNoIndicationOfWords.

Actual result:

The generated getters and setters are in all uppercase:

/**
 * Gets the value of the 'THERE_IS_NO_INDICATION_OF_WORDS' field.
 * @return The value of the 'THERE_IS_NO_INDICATION_OF_WORDS' field.
 */
 public java.lang.CharSequence getTHEREISNOINDICATIONOFWORDS() \{   return 
THERE_IS_NO_INDICATION_OF_WORDS; }

/**
 * Sets the value of the 'THERE_IS_NO_INDICATION_OF_WORDS' field.
 * @param value the value to set.
 */
 public void setTHEREISNOINDICATIONOFWORDS(java.lang.CharSequence value) \{   
this.THERE_IS_NO_INDICATION_OF_WORDS = value; }

 


> Uppercase fields do not generate proper getter/setters in Java
> --
>
> Key: AVRO-2385
> URL: https://issues.apache.org/jira/browse/AVRO-2385
> Project: Apache Avro
>  Issue Type: Bug
>  Components: java
>Affects Versions: 1.8.2
> Environment: Using Maven plugin with Java 8:
> {{ }}
> {{  org.apache.avro}}
> {{  avro-maven-plugin}}
> {{  1.8.2}}
> {{  }}
> {{    }}
> {{      generate-sources}}
> {{      }}
> {{        schema}}
> {{      }}
> {{      }}
> {{        
> ${project.basedir}/src/main/resources}}
> {{      }}
> {{    }}
> {{  }}
> {{ }}
>Reporter: Andrew
>Priority: Major
>
> Steps to reproduce:
> Create an Avro schema with an uppercase field:
> {code}
> {
>   "type": "record",
>   "name": "example",
>   "namespace": "issue",
>   "fields": [
> {
>   "name": "THERE_IS_NO_INDICATION_OF_WORDS",
>   "type": "string"
>     }
>   ]
> }
> {code}
> Use the avro-maven-plugin to generate Java code for this schema.
> Expected result:
> The generate getters and setters use camel casing ThereIsNoIndicationOfWords.
> Actual result:
> The generated getters and setters are in all uppercase:
> {code}
> /**
>  * Gets the value of the 'THERE_IS_NO_INDICATION_OF_WORDS' field.
>  * @return The value of the 'THERE_IS_NO_INDICATION_OF_WORDS' field.
>  */
> public java.lang.CharSequence getTHEREISNOINDICATIONOFWORDS() {
>   return THERE_IS_NO_INDICATION_OF_WORDS;
> }
> /**
>  * Sets the value of the 'THERE_IS_NO_INDICATION_OF_WORDS' field.
>  * @param value the value to set.
>  */
> public void setTHEREISNOINDICATIONOFWORDS(java.lang.CharSequence value) {
>   this.THERE_IS_NO_INDICATION_OF_WORDS = value;
> }
> {code}
>  



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)


[jira] [Updated] (AVRO-2385) Uppercase fields do not generate proper getter/setters in Java

2019-05-03 Thread Sean Busbey (JIRA)


 [ 
https://issues.apache.org/jira/browse/AVRO-2385?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Sean Busbey updated AVRO-2385:
--
Environment: Using Maven plugin with Java 8  (was: Using Maven plugin with 
Java 8:

{{ }}
{{  org.apache.avro}}
{{  avro-maven-plugin}}
{{  1.8.2}}
{{  }}
{{    }}
{{      generate-sources}}
{{      }}
{{        schema}}
{{      }}
{{      }}
{{        
${project.basedir}/src/main/resources}}
{{      }}
{{    }}
{{  }}
{{ }})

> Uppercase fields do not generate proper getter/setters in Java
> --
>
> Key: AVRO-2385
> URL: https://issues.apache.org/jira/browse/AVRO-2385
> Project: Apache Avro
>  Issue Type: Bug
>  Components: java
>Affects Versions: 1.8.2
> Environment: Using Maven plugin with Java 8
>Reporter: Andrew
>Priority: Major
>
> Steps to reproduce:
> Create an Avro schema with an uppercase field:
> {code}
> {
>   "type": "record",
>   "name": "example",
>   "namespace": "issue",
>   "fields": [
> {
>   "name": "THERE_IS_NO_INDICATION_OF_WORDS",
>   "type": "string"
>     }
>   ]
> }
> {code}
> Use the avro-maven-plugin to generate Java code for this schema.
> Expected result:
> The generate getters and setters use camel casing ThereIsNoIndicationOfWords.
> Actual result:
> The generated getters and setters are in all uppercase:
> {code}
> /**
>  * Gets the value of the 'THERE_IS_NO_INDICATION_OF_WORDS' field.
>  * @return The value of the 'THERE_IS_NO_INDICATION_OF_WORDS' field.
>  */
> public java.lang.CharSequence getTHEREISNOINDICATIONOFWORDS() {
>   return THERE_IS_NO_INDICATION_OF_WORDS;
> }
> /**
>  * Sets the value of the 'THERE_IS_NO_INDICATION_OF_WORDS' field.
>  * @param value the value to set.
>  */
> public void setTHEREISNOINDICATIONOFWORDS(java.lang.CharSequence value) {
>   this.THERE_IS_NO_INDICATION_OF_WORDS = value;
> }
> {code}
>  



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)


[jira] [Updated] (AVRO-2385) Uppercase fields do not generate proper getter/setters in Java

2019-04-30 Thread Andrew (JIRA)


 [ 
https://issues.apache.org/jira/browse/AVRO-2385?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Andrew updated AVRO-2385:
-
Description: 
Steps to reproduce:

Create an Avro schema with an uppercase field:

{
 {{  "type": "record",}}
 {{  "name": "example",}}
 {{  "namespace": "issue",}}
 {{  "fields": [}}
 {{    {}}
 {{      "name": "THERE_IS_NO_INDICATION_OF_WORDS",}}
 {{      "type": "string"}}
         }
 {{  ]}}
 {{}}}

Use the avro-maven-plugin to generate Java code for this schema.

Expected result:

The generate getters and setters use camel casing ThereIsNoIndicationOfWords.

Actual result:

The generated getters and setters are in all uppercase:

/**
 * Gets the value of the 'THERE_IS_NO_INDICATION_OF_WORDS' field.
 * @return The value of the 'THERE_IS_NO_INDICATION_OF_WORDS' field.
 */
 public java.lang.CharSequence getTHEREISNOINDICATIONOFWORDS() \{   return 
THERE_IS_NO_INDICATION_OF_WORDS; }

/**
 * Sets the value of the 'THERE_IS_NO_INDICATION_OF_WORDS' field.
 * @param value the value to set.
 */
 public void setTHEREISNOINDICATIONOFWORDS(java.lang.CharSequence value) \{   
this.THERE_IS_NO_INDICATION_OF_WORDS = value; }

 

  was:
Steps to reproduce:

Create an Avro schema with an uppercase field:

{{{}}
{{  "type": "record",}}
{{  "name": "example",}}
{{  "namespace": "issue",}}
{{  "fields": [}}
{{    {}}
{{      "name": "THERE_IS_NO_INDICATION_OF_WORDS",}}
{{      "type": "string"}}
{{    }}}
{{  ]}}
{{}}}

Use the avro-maven-plugin to generate Java code for this schema.

Expected result:

The generate getters and setters use camel casing ThereIsNoIndicationIfWords.

Actual result:

The generated getters and setters are in all uppercase:

/**
 * Gets the value of the 'THERE_IS_NO_INDICATION_OF_WORDS' field.
 * @return The value of the 'THERE_IS_NO_INDICATION_OF_WORDS' field.
 */
public java.lang.CharSequence getTHEREISNOINDICATIONOFWORDS() {
  return THERE_IS_NO_INDICATION_OF_WORDS;
}

/**
 * Sets the value of the 'THERE_IS_NO_INDICATION_OF_WORDS' field.
 * @param value the value to set.
 */
public void setTHEREISNOINDICATIONOFWORDS(java.lang.CharSequence value) {
  this.THERE_IS_NO_INDICATION_OF_WORDS = value;
}

 


> Uppercase fields do not generate proper getter/setters in Java
> --
>
> Key: AVRO-2385
> URL: https://issues.apache.org/jira/browse/AVRO-2385
> Project: Apache Avro
>  Issue Type: Bug
>  Components: java
>Affects Versions: 1.8.2
> Environment: Using Maven plugin with Java 8:
> {{ }}
> {{  org.apache.avro}}
> {{  avro-maven-plugin}}
> {{  1.8.2}}
> {{  }}
> {{    }}
> {{      generate-sources}}
> {{      }}
> {{        schema}}
> {{      }}
> {{      }}
> {{        
> ${project.basedir}/src/main/resources}}
> {{      }}
> {{    }}
> {{  }}
> {{ }}
>Reporter: Andrew
>Priority: Major
>
> Steps to reproduce:
> Create an Avro schema with an uppercase field:
> {
>  {{  "type": "record",}}
>  {{  "name": "example",}}
>  {{  "namespace": "issue",}}
>  {{  "fields": [}}
>  {{    {}}
>  {{      "name": "THERE_IS_NO_INDICATION_OF_WORDS",}}
>  {{      "type": "string"}}
>          }
>  {{  ]}}
>  {{}}}
> Use the avro-maven-plugin to generate Java code for this schema.
> Expected result:
> The generate getters and setters use camel casing ThereIsNoIndicationOfWords.
> Actual result:
> The generated getters and setters are in all uppercase:
> /**
>  * Gets the value of the 'THERE_IS_NO_INDICATION_OF_WORDS' field.
>  * @return The value of the 'THERE_IS_NO_INDICATION_OF_WORDS' field.
>  */
>  public java.lang.CharSequence getTHEREISNOINDICATIONOFWORDS() \{   return 
> THERE_IS_NO_INDICATION_OF_WORDS; }
> /**
>  * Sets the value of the 'THERE_IS_NO_INDICATION_OF_WORDS' field.
>  * @param value the value to set.
>  */
>  public void setTHEREISNOINDICATIONOFWORDS(java.lang.CharSequence value) \{   
> this.THERE_IS_NO_INDICATION_OF_WORDS = value; }
>  



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)