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

Brenden Anderle updated NETBEANS-5989:
--------------------------------------
    Description: 
[Update]  Just noticed that first line of class file is empty - blank line 
before the package declaration.  I edited the files to remove the blank lines 
in another editor and they opened without issues.

 

When opening Java source files (generated by  jsonschema2pojo) the compiler 
displays multiple errors, claims duplicate class exists among other things, and 
the Null Pointer Exception is shown in the Notifications.  Sample code below.  
Please see attached error report - note that it is too large for the entire 
report, only first 1100 lines shown.

 

package io.yaxche.openproject.rest;

import java.util.HashMap;
 import java.util.Map;
 import javax.annotation.Generated;
 import com.fasterxml.jackson.annotation.JsonAnyGetter;
 import com.fasterxml.jackson.annotation.JsonAnySetter;
 import com.fasterxml.jackson.annotation.JsonIgnore;
 import com.fasterxml.jackson.annotation.JsonInclude;
 import com.fasterxml.jackson.annotation.JsonProperty;
 import com.fasterxml.jackson.annotation.JsonPropertyOrder;

@JsonInclude(JsonInclude.Include.NON_NULL)
 @JsonPropertyOrder(

{ "format", "raw", "html" }

)
 @Generated("jsonschema2pojo")
 public class Description {

  was:
When opening Java source files (generated by  jsonschema2pojo) the compiler 
displays multiple errors, claims duplicate class exists among other things, and 
the Null Pointer Exception is shown in the Notifications.  Sample code below.  
Please see attached error report - note that it is too large for the entire 
report, only first 1100 lines shown.

 

package io.yaxche.openproject.rest;

import java.util.HashMap;
import java.util.Map;
import javax.annotation.Generated;
import com.fasterxml.jackson.annotation.JsonAnyGetter;
import com.fasterxml.jackson.annotation.JsonAnySetter;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;

@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonPropertyOrder({
 "format",
 "raw",
 "html"
})
@Generated("jsonschema2pojo")
public class Description {


> NPE when browsing files with JSON annotations
> ---------------------------------------------
>
>                 Key: NETBEANS-5989
>                 URL: https://issues.apache.org/jira/browse/NETBEANS-5989
>             Project: NetBeans
>          Issue Type: Bug
>          Components: cnd - Editor
>    Affects Versions: 12.3
>         Environment: MAC OSX:   10.15.7 (19H1323)
> 64 GB RAM - 2.0 TB SSD
>  
>            Reporter: Brenden Anderle
>            Priority: Major
>         Attachments: ErrorReport_2021sep08-first-1100lines.txt
>
>
> [Update]  Just noticed that first line of class file is empty - blank line 
> before the package declaration.  I edited the files to remove the blank lines 
> in another editor and they opened without issues.
>  
> When opening Java source files (generated by  jsonschema2pojo) the compiler 
> displays multiple errors, claims duplicate class exists among other things, 
> and the Null Pointer Exception is shown in the Notifications.  Sample code 
> below.  Please see attached error report - note that it is too large for the 
> entire report, only first 1100 lines shown.
>  
> package io.yaxche.openproject.rest;
> import java.util.HashMap;
>  import java.util.Map;
>  import javax.annotation.Generated;
>  import com.fasterxml.jackson.annotation.JsonAnyGetter;
>  import com.fasterxml.jackson.annotation.JsonAnySetter;
>  import com.fasterxml.jackson.annotation.JsonIgnore;
>  import com.fasterxml.jackson.annotation.JsonInclude;
>  import com.fasterxml.jackson.annotation.JsonProperty;
>  import com.fasterxml.jackson.annotation.JsonPropertyOrder;
> @JsonInclude(JsonInclude.Include.NON_NULL)
>  @JsonPropertyOrder(
> { "format", "raw", "html" }
> )
>  @Generated("jsonschema2pojo")
>  public class Description {



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@netbeans.apache.org
For additional commands, e-mail: commits-h...@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists

Reply via email to